Liang He d1bfd4cf6b block: sunvdc: add check for mdesc_grab() returning NULL
[ Upstream commit 6030363199e3a6341afb467ddddbed56640cbf6a ]

In vdc_port_probe(), we should check the return value of mdesc_grab() as
it may return NULL, which can cause potential NPD bug.

Fixes: 43fdf27470b2 ("[SPARC64]: Abstract out mdesc accesses for better MD update handling.")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20230315062032.1741692-1-windhl@126.com
[axboe: style cleanup]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-22 13:31:27 +01:00
..
2021-06-30 12:21:16 -07:00
2021-09-02 15:09:46 -07:00
2023-03-17 08:48:51 +01:00
2023-03-22 13:31:26 +01:00
2021-09-03 22:14:40 -06:00
2021-03-24 06:57:40 -06:00
2021-08-02 13:37:27 -06:00
2021-06-11 11:53:02 -06:00
2021-06-30 12:21:16 -07:00