diff options
| author | Charles Han <[email protected]> | 2025-01-10 08:42:37 +0000 |
|---|---|---|
| committer | Takashi Sakamoto <[email protected]> | 2025-01-13 01:31:27 +0000 |
| commit | 352fafe97784e81a10a7c74bd508f71a19b53c2a (patch) | |
| tree | 3d20775021fdb8d5a47fa35a763300ce5f428b8e /drivers/base/memory.c | |
| parent | firewire: ohci: use generic power management (diff) | |
| download | kernel-352fafe97784e81a10a7c74bd508f71a19b53c2a.tar.gz kernel-352fafe97784e81a10a7c74bd508f71a19b53c2a.zip | |
firewire: test: Fix potential null dereference in firewire kunit test
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: 1c8506d62624 ("firewire: test: add test of device attributes for simple AV/C device")
Signed-off-by: Charles Han <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Sakamoto <[email protected]>
Diffstat (limited to 'drivers/base/memory.c')
0 files changed, 0 insertions, 0 deletions
