commit | 3163c79efa653ea9832acb8efe55efd34a5f4ae6 | [log] [tgz] |
---|---|---|
author | Michal Nazarewicz <mina86@mina86.com> | Mon Jan 04 21:28:34 2016 +0100 |
committer | Felipe Balbi <balbi@kernel.org> | Fri Mar 04 15:14:31 2016 +0200 |
tree | 0411d4149db3bf8ecd68ead87d493de779ee74b2 | |
parent | 3de4e20568171f542adb8d54a47c46ff025ca942 [diff] |
usb: f_fs: fix ffs_epfile_io returning success on req alloc failure In the AIO path, if allocating of a request failse, the function simply goes to the error_lock path whose end result is returning value of ret. However, at this point ret’s value is zero (assigned as return value from ffs_mutex_lock). Fix by adding ‘ret = -ENOMEM’ statement. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>