Re: [PATCH] blk_rq_map_user_iov: fix error override

2018-01-15 Thread Jens Axboe
On 1/14/18 3:00 PM, Douglas Gilbert wrote: > 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] blk_rq_map_user_iov: fix error override

2018-01-14 Thread Douglas Gilbert
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: