Sergey Shtylyov
ff128fbea7
ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()
...
[ Upstream commit bf476fe22aa1851bab4728e0c49025a6a0bea307 ]
In an unlikely (and probably wrong?) case that the 'ppi' parameter of
ata_host_alloc_pinfo() points to an array starting with a NULL pointer,
there's going to be a kernel oops as the 'pi' local variable won't get
reassigned from the initial value of NULL. Initialize 'pi' instead to
'&ata_dummy_port_info' to fix the possible kernel oops for good...
Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru >
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-06-22 14:21:56 +02:00
..
2020-01-22 10:32:51 -07:00
2021-05-03 13:15:04 -05:00
2021-04-06 09:25:01 -06:00
2019-05-24 17:27:12 +02:00
2019-05-24 17:27:12 +02:00
2020-04-07 14:49:45 -06:00
2019-05-30 11:26:41 -07:00
2020-10-09 12:47:56 -06:00
2019-05-24 17:27:12 +02:00
2020-10-02 14:53:37 -06:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:55 +02:00
2021-06-14 08:26:54 -06:00
2021-04-11 20:35:08 -06:00
2021-03-12 07:28:30 -07:00
2021-12-08 09:04:40 +01:00
2021-06-16 06:50:25 -06:00
2021-03-30 20:21:26 -06:00
2019-11-06 20:34:25 -07:00
2021-07-10 09:22:44 -07:00
2021-10-14 12:22:47 +09:00
2021-12-08 09:04:40 +01:00
2021-03-30 20:21:26 -06:00
2022-06-22 14:21:56 +02:00
2021-11-18 19:15:51 +01:00
2020-03-26 10:28:19 -06:00
2021-03-12 07:28:30 -07:00
2021-08-18 07:19:39 -06:00
2021-12-22 09:32:49 +01:00
2021-07-09 08:28:20 -06:00
2019-05-21 11:28:46 +02:00
2022-06-14 18:36:25 +02:00
2019-07-29 16:00:14 -06:00
2020-03-26 10:28:20 -06:00
2020-03-26 10:28:19 -06:00
2021-03-30 20:21:26 -06:00
2021-03-12 07:28:30 -07:00
2021-03-12 07:28:30 -07:00
2021-03-26 17:13:02 -06:00
2021-03-12 07:28:30 -07:00
2021-06-16 06:50:25 -06:00
2020-08-23 17:36:59 -05:00
2019-08-23 06:58:50 -06:00
2020-10-02 17:51:30 -06:00
2019-05-21 10:50:45 +02:00
2021-06-16 06:50:25 -06:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2021-06-16 08:52:38 -06:00
2019-05-21 10:50:45 +02:00
2021-05-27 13:03:48 -06:00
2021-08-11 22:25:37 -04:00
2019-05-21 10:50:45 +02:00
2021-03-12 07:28:31 -07:00
2019-08-26 13:58:59 -06:00
2022-03-08 19:12:33 +01:00
2021-03-12 07:28:30 -07:00
2021-01-31 08:05:46 -07:00
2019-05-21 10:50:45 +02:00
2021-03-30 20:21:25 -06:00
2019-05-21 10:50:45 +02:00
2021-08-04 12:20:44 +02:00
2021-03-12 07:28:31 -07:00
2021-10-12 09:52:35 +09:00
2021-06-16 06:50:26 -06:00
2022-04-27 14:38:58 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-08-26 13:58:59 -06:00
2019-05-21 11:28:46 +02:00
2021-03-12 07:28:31 -07:00
2022-06-14 18:36:16 +02:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2021-03-30 20:21:26 -06:00
2021-03-12 07:28:31 -07:00
2019-06-19 17:09:55 +02:00
2020-01-29 20:54:51 -07:00
2021-03-30 20:21:25 -06:00
2021-03-12 07:28:31 -07:00
2021-03-30 20:21:25 -06:00
2021-04-06 09:27:30 -06:00
2019-11-01 08:50:51 -06:00
2019-05-21 10:50:45 +02:00
2021-06-24 18:49:01 -06:00
2019-05-21 11:28:46 +02:00
2019-05-21 10:50:45 +02:00
2019-06-19 17:09:55 +02:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:00 +02:00
2021-06-16 06:50:26 -06:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2019-11-01 08:50:51 -06:00
2022-04-13 20:59:23 +02:00
2021-12-08 09:04:42 +01:00
2019-05-21 10:50:45 +02:00
2021-05-18 15:17:46 -06:00
2020-04-23 09:59:30 -06:00
2021-10-25 08:53:04 +09:00
2021-06-16 06:50:25 -06:00
2020-08-23 17:36:59 -05:00
2019-05-21 11:28:46 +02:00
2019-11-01 08:50:51 -06:00
2020-10-16 09:32:11 -06:00
2021-06-16 06:50:25 -06:00
2019-11-01 08:50:51 -06:00
2019-05-21 11:28:46 +02:00
2019-08-26 13:58:59 -06:00
2020-08-23 17:36:59 -05:00
2019-05-21 11:28:46 +02:00
2019-08-26 13:58:59 -06:00
2019-08-26 13:58:59 -06:00