linux-yocto/drivers/firewire
Charles Han c6896bf4c6 firewire: test: Fix potential null dereference in firewire kunit test
[ Upstream commit 352fafe977 ]

kunit_kzalloc() may return a NULL pointer, dereferencing it without
NULL check may lead to NULL dereference.
Add a NULL check for test_state.

Fixes: 1c8506d626 ("firewire: test: add test of device attributes for simple AV/C device")
Signed-off-by: Charles Han <hanchunchao@inspur.com>
Link: https://lore.kernel.org/r/20250110084237.8877-1-hanchunchao@inspur.com
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-08 09:57:57 +01:00
..
.kunitconfig firewire: ohci: add static inline functions to deserialize for Self-ID DMA operation 2024-07-04 08:12:48 +09:00
core-card.c firewire: core: allocate workqueue to handle isochronous contexts in card 2024-09-04 21:51:50 +09:00
core-cdev.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
core-device.c firewire: core: update fw_device outside of device_find_child() 2024-08-20 22:21:32 +09:00
core-iso.c firewire: core: update documentation of kernel APIs for flushing completions 2024-09-12 22:30:37 +09:00
core-topology.c firewire: core: fix invalid port index for parent device 2024-10-27 11:14:35 +09:00
core-trace.c firewire: core: move copy_port_status() helper function to TP_fast_assign() block 2024-07-12 14:34:12 +09:00
core-transaction.c firewire: core: replace IDR with XArray to maintain fw_device 2024-08-12 10:42:50 +09:00
core.h Revert "firewire: core: move workqueue handler from 1394 OHCI driver to core function" 2024-09-12 22:30:35 +09:00
device-attribute-test.c firewire: test: Fix potential null dereference in firewire kunit test 2025-02-08 09:57:57 +01:00
init_ohci1394_dma.c
Kconfig firewire: ohci: add static inline functions to deserialize for Self-ID DMA operation 2024-07-04 08:12:48 +09:00
Makefile firewire: ohci: add static inline functions to deserialize for Self-ID DMA operation 2024-07-04 08:12:48 +09:00
net.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
nosy-user.h
nosy.c firewire: nosy: ensure user_length is taken into account when fetching packet contents 2024-04-29 18:35:55 +09:00
nosy.h
ohci-serdes-test.c firewire: ohci: add static inline functions to serialize/deserialize data of IT DMA 2024-08-02 09:36:05 +09:00
ohci.c firewire: core: rename cause flag of tracepoints event 2024-09-12 22:30:38 +09:00
ohci.h firewire: ohci: add static inline functions to serialize/deserialize data of IT DMA 2024-08-02 09:36:05 +09:00
packet-header-definitions.h firewire: core: arrangement header inclusion for tracepoints events 2024-06-17 08:37:03 +09:00
packet-serdes-test.c firewire: core: add tests for serialization/deserialization of phy config packet 2024-06-17 08:37:03 +09:00
phy-packet-definitions.h firewire: core: add tests for serialization/deserialization of phy config packet 2024-06-17 08:37:03 +09:00
sbp2.c scsi: sbp2: Switch to using ->device_configure 2024-04-11 21:37:49 -04:00
self-id-sequence-helper-test.c firewire: core: add helper function to handle port status from self ID sequence and its KUnit test 2024-06-17 08:37:02 +09:00
uapi-test.c firewire: add missing MODULE_DESCRIPTION() to test modules 2024-05-27 07:34:58 +09:00