diff options
| author | Maurizio Lombardi <[email protected]> | 2024-08-21 14:28:26 +0000 |
|---|---|---|
| committer | Keith Busch <[email protected]> | 2024-08-26 23:00:52 +0000 |
| commit | 5572a55a6f830ee3f3a994b6b962a5c327d28cb3 (patch) | |
| tree | 6ce601118798d7c679151a556120c5dd465054d3 /drivers/platform/surface/aggregator/ssh_parser.c | |
| parent | nvme: use better description for async reset reason (diff) | |
| download | kernel-5572a55a6f830ee3f3a994b6b962a5c327d28cb3.tar.gz kernel-5572a55a6f830ee3f3a994b6b962a5c327d28cb3.zip | |
nvmet-tcp: fix kernel crash if commands allocation fails
If the commands allocation fails in nvmet_tcp_alloc_cmds()
the kernel crashes in nvmet_tcp_release_queue_work() because of
a NULL pointer dereference.
nvmet: failed to install queue 0 cntlid 1 ret 6
Unable to handle kernel NULL pointer dereference at
virtual address 0000000000000008
Fix the bug by setting queue->nr_cmds to zero in case
nvmet_tcp_alloc_cmd() fails.
Fixes: 872d26a391da ("nvmet-tcp: add NVMe over TCP target driver")
Signed-off-by: Maurizio Lombardi <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions
