> On 1 Aug 2017, at 15.42, Hannes Reinecke <hare@xxxxxxx> wrote: > > From: Bodo Stroesser <bstroesser@xxxxxxxxxxxxxx> > > If blk_queue_get() in st_probe fails, disk->queue must not > be set to SDp->request_queue, as that would result in > put_disk() dropping a not taken reference. > > Thus, disk->queue should be set only after a successful > blk_queue_get(). > > Signed-off-by: Bodo Stroesser <bstroesser@xxxxxxxxxxxxxx> > Acked-by: Shirish Pargaonkar <spargaonkar@xxxxxxxx> > Signed-off-by: Hannes Reinecke <hare@xxxxxxxx> Acked-by: Kai Mäkisara <kai.makisara@xxxxxxxxxxx> Thanks, Kai