mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 17:42:03 +02:00
When diag324 reports -EBUSY, the error code is
overwritten by the result of copy_to_user() and put_user(). As a result,
the ioctl may incorrectly return success instead of -EBUSY.
Preserve the original diag324 return code and only return -EFAULT when
copying data to userspace fails.
Fixes:
|
||
|---|---|---|
| .. | ||
| diag_ioctl.h | ||
| diag_misc.c | ||
| diag.c | ||
| diag310.c | ||
| diag324.c | ||
| Makefile | ||