Re: [PATCH] ide-atapi: Check for blk_mq_alloc_request() errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/23/18 12:18 AM, Dan Carpenter wrote:
> If blk_mq_alloc_request() fails then it leads to an error pointer
> dereference.

Thanks, this should not error, as we're getting the one and only
reserved tag. That's why it doesn't check. So I think if we're
going to add code to a case that can't happen, it should at least
be accompanied by a error print of some sort.

-- 
Jens Axboe




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux