diff options
| author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-10-24 15:28:45 +0200 |
|---|---|---|
| committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-10-24 19:03:54 +0200 |
| commit | 301fd0dd1827d3885f61620baf5033093b88d4cc (patch) | |
| tree | 392cb2eff74e36cbbdafd8a43f631b1497f987d8 /drivers/media/v4l2-core/v4l2-ioctl.c | |
| parent | radio-terratec: Remove variable p (diff) | |
| download | linux-301fd0dd1827d3885f61620baf5033093b88d4cc.tar.gz linux-301fd0dd1827d3885f61620baf5033093b88d4cc.zip | |
atomisp: fix potential NULL pointer dereferences
The asd pointer is used in lockdep_assert_held() before the check if
asd is NULL.
This fixes two smatch warnings:
drivers/staging/media/atomisp/pci/atomisp_cmd.c:3697 atomisp_handle_parameter_and_buffer() warn: variable dereferenced before check 'asd' (see line 3695)
drivers/staging/media/atomisp/pci/atomisp_cmd.c:3779 atomisp_set_parameters() warn: variable dereferenced before check 'asd' (see line 3777)
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ioctl.c')
0 files changed, 0 insertions, 0 deletions
