Commit 32b083a
VMCI: Fix deref before NULL-check of queuepair ptr
Check for a valid queuepair ptr before trying to lock the queuepair (which will
deref it).
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy King <acking@vmware.com>
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 42281d2 commit 32b083a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3355 | 3355 | | |
3356 | 3356 | | |
3357 | 3357 | | |
3358 | | - | |
3359 | | - | |
3360 | 3358 | | |
3361 | 3359 | | |
3362 | 3360 | | |
| 3361 | + | |
| 3362 | + | |
3363 | 3363 | | |
3364 | 3364 | | |
3365 | 3365 | | |
| |||
0 commit comments