aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorDouglas Gilbert <[email protected]>2018-01-14 17:00:48 -0500
committerJens Axboe <[email protected]>2018-01-15 08:50:32 -0700
commit69e0927b3774563c19b5fb32e91d75edc147fb62 (patch)
tree597acc434317fb8ba709051e0ee68de2c288f649 /net/unix/sysctl_net_unix.c
parentfa70d2e2c4a0a54ced98260c6a176cc94c876d27 (diff)
blk_rq_map_user_iov: fix error override
During stress tests by syzkaller on the sg driver the block layer infrequently returns EINVAL. Closer inspection shows the block layer was trying to return ENOMEM (which is much more understandable) but for some reason overroad that useful error. Patch below does not show this (unchanged) line: ret =__blk_rq_map_user_iov(rq, map_data, &i, gfp_mask, copy); That 'ret' was being overridden when that function failed. Signed-off-by: Douglas Gilbert <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions