aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorAndy Grover <[email protected]>2016-08-25 08:55:53 -0700
committerNicholas Bellinger <[email protected]>2016-10-19 21:22:16 -0700
commit554617b2bbe25c3fb3c80c28fe7a465884bb40b1 (patch)
tree0a4a342ff1d0ae52a6cad39352a714a914489bd1 /net/unix/sysctl_net_unix.c
parent02eb924fabc5b699c0d9d354491e6f0767e3c139 (diff)
target/user: Return an error if cmd data size is too large
Userspace should be implementing VPD B0 (Block Limits) to inform the initiator of max data size, but just in case we do get a too-large request, do what the spec says and return INVALID_CDB_FIELD. Make sure to unlock udev->cmdr_lock before returning. Signed-off-by: Andy Grover <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Mike Christie <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions