3343f376d4
The problem is that "req->actual" is a u32, "req->status" is an int, and iocb->ki_complete() takes a long. We would expect that a negative error code in "req->status" would translate to a negative long value. But what actually happens is that because "req->actual" is a u32, the error codes is type promoted to a high positive value and then remains a positive value when it is cast to long. (No sign expansion). We can fix this by casting "req->status" to long. Acked-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/YIE7RrBPLWc3XtMg@mwanda Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
acm_ms.c | ||
audio.c | ||
cdc2.c | ||
dbgp.c | ||
ether.c | ||
g_ffs.c | ||
gmidi.c | ||
hid.c | ||
inode.c | ||
Kconfig | ||
Makefile | ||
mass_storage.c | ||
multi.c | ||
ncm.c | ||
nokia.c | ||
printer.c | ||
raw_gadget.c | ||
serial.c | ||
tcm_usb_gadget.c | ||
webcam.c | ||
zero.c |