mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
media: pci: cx18: if cx == NULL, then don't use it.
If the cx NULL pointer check is true, then it reports an error with CX18_ERR, but that uses cx. Replace it with pr_err. Reported by smatch: drivers/media/pci/cx18/cx18-mailbox.c:834 cx18_vapi() error: we previously assumed 'cx' could be null (see line 833) Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
65b8c8cb2b
commit
be521bf7bf
1 changed files with 1 additions and 1 deletions
|
@ -831,7 +831,7 @@ int cx18_vapi(struct cx18 *cx, u32 cmd, int args, ...)
|
|||
int i;
|
||||
|
||||
if (cx == NULL) {
|
||||
CX18_ERR("cx == NULL (cmd=%x)\n", cmd);
|
||||
pr_err("cx == NULL (cmd=%x)\n", cmd);
|
||||
return 0;
|
||||
}
|
||||
if (args > MAX_MB_ARGUMENTS) {
|
||||
|
|
Loading…
Reference in a new issue