]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: FunctionFS: Return -ENOENT instead of -ENODEV when device not found.
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Wed, 21 May 2014 12:05:35 +0000 (14:05 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 30 Jun 2014 18:27:35 +0000 (13:27 -0500)
commitc0c890abb63661ad4abd8fe8b77a6183ba80baaf
tree94bd000f24dd3b33be7700bdc590bdb5f1303edb
parent0dc8857e2ca4b8fb309474731ef6c38b228f3391
usb: gadget: FunctionFS: Return -ENOENT instead of -ENODEV when device not found.

Syscall mount returns -ENODEV error if requested FS type
has not been found. Returning the same error from FFS mount
callback makes value returned to userspace misleading.

Other file systems returns -ENOENT if requested device
has not been found. Adjust FFS to this convention to make
error codes meaningfull.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c
drivers/usb/gadget/g_ffs.c