2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/caif
Vitaliy Shevtsov a466fd7e9f caif_virtio: fix wrong pointer check in cfv_probe()
del_vqs() frees virtqueues, therefore cfv->vq_tx pointer should be checked
for NULL before calling it, not cfv->vdev. Also the current implementation
is redundant because the pointer cfv->vdev is dereferenced before it is
checked for NULL.

Fix this by checking cfv->vq_tx for NULL instead of cfv->vdev before
calling del_vqs().

Fixes: 0d2e1a2926 ("caif_virtio: Introduce caif over virtio")
Signed-off-by: Vitaliy Shevtsov <v.shevtsov@mt-integration.ru>
Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Link: https://patch.msgid.link/20250227184716.4715-1-v.shevtsov@mt-integration.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-02-28 18:04:23 -08:00
..
caif_serial.c tty: use u8 for flags 2023-08-11 21:12:45 +02:00
caif_virtio.c caif_virtio: fix wrong pointer check in cfv_probe() 2025-02-28 18:04:23 -08:00
Kconfig net: remove the caif_hsi driver 2021-07-01 13:19:48 -07:00
Makefile net: remove the caif_hsi driver 2021-07-01 13:19:48 -07:00