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

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

 



On Fri, Nov 23, 2018 at 12:54:32PM -0700, Jens Axboe wrote:
> 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.

Ah.  Fine.  Let's not add code just to make the static checker happy.

We should leave it as-is.

regards,
dan carpenter




[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