Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 10e4ac57 authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina
Browse files

viacam: Don't explode if pci_find_bus() returns NULL



In the unlikely case that pci_find_bus() should return NULL
viacam_serial_is_enabled() is going to dereference a NULL pointer and
blow up. Better safe than sorry, so be defensive and check the
pointer.

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Acked-by: default avatarJonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 12922084
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment