mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
NVMe: Initialize device list head before starting
Driver recovery requires the device's list node to have been initialized. Fixes: https://lkml.org/lkml/2015/3/22/262 Reported-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Keith Busch <keith.busch@intel.com> Cc: Matthew Wilcox <willy@linux.intel.com> Cc: Jens Axboe <axboe@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
7ee8e4f398
commit
e6e96d73a2
1 changed files with 1 additions and 0 deletions
|
@ -3003,6 +3003,7 @@ static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||||
}
|
}
|
||||||
get_device(dev->device);
|
get_device(dev->device);
|
||||||
|
|
||||||
|
INIT_LIST_HEAD(&dev->node);
|
||||||
INIT_WORK(&dev->probe_work, nvme_async_probe);
|
INIT_WORK(&dev->probe_work, nvme_async_probe);
|
||||||
schedule_work(&dev->probe_work);
|
schedule_work(&dev->probe_work);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue