diff options
author | Liang He <windhl@126.com> | 2023-03-15 09:20:32 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-03-15 17:48:58 +0300 |
commit | 6030363199e3a6341afb467ddddbed56640cbf6a (patch) | |
tree | 433e822d753a53a5f4e317dff7f693d0301496d7 /drivers/nvme | |
parent | b6402014cab0481bdfd1ffff3e1dad714e8e1205 (diff) | |
download | linux-6030363199e3a6341afb467ddddbed56640cbf6a.tar.xz |
block: sunvdc: add check for mdesc_grab() returning NULL
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>
Diffstat (limited to 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions