9p fixes for the 3.16 merge window

Two bug fixes, one in xattr error path and the other in parsing
major/minor numbers from devices.
This tag has no release notes.