Re: [PATCH] scsi: sd: do not call device_add() on scsi_disk with uninitialized gendisk ->queue

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

 



On Thu, Sep 02, 2021 at 12:24:25PM -0400, Ewan D. Milne wrote:
> Calling device_add() makes the scsi_disk visible in sysfs, the accessor
> routines reference sdkp->disk->queue which was not yet set properly.
> Fix this by initializing gendisk fields earlier in the function.

What kernel is this against?  This won't apply against linux-next
as disk->queue is now always set up by __blk_alloc_disk.



[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