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]

 



It was against git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git
branch "fixes".

Looks like your changes resolve ->queue not being set prior to add_device(),
please disregard my patch.  It's not that critical to fix in earlier versions.
Sorry for the noise.

-Ewan

On Thu, Sep 2, 2021 at 1:01 PM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> 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