Repository navigation
Commit fc4073d
libata: fix ata_host_start()
[ Upstream commit 355a803 ]
The loop on entry of ata_host_start() may not initialize host->ops to a
non NULL value. The test on the host_stop field of host->ops must then
be preceded by a check that host->ops is not NULL.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210816014456.2191776-3-damien.lemoal@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent cf619a5 commit fc4073d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5573 | 5573 | | |
5574 | 5574 | | |
5575 | 5575 | | |
5576 | | - | |
| 5576 | + | |
5577 | 5577 | | |
5578 | 5578 | | |
5579 | 5579 | | |
| |||
0 commit comments