Re: [PATCH] scsi_logging: fix a BUG

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

 



On Thu, Mar 24, 2022 at 02:46:03PM +0100, Tomas Henzl wrote:
> The request_queue may be NULL in a request, for example when it comes
> from scsi_ioctl_reset.
> Check it before before use.
> 
> Fixes: f3fa33acca9f ("block: remove the ->rq_disk field in struct request")
> 
> Reported-by: Changhui Zhong <czhong@xxxxxxxxxx>
> Signed-off-by: Tomas Henzl <thenzl@xxxxxxxxxx>

As a quick fix this look good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>

but I really wonder if we should print some other identifier if the disk
name is not available.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux