mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
5ae890780e
Currently the call to cdev_add is missing a check for failure. Fix this by
checking for failure and exiting via a new error path that ensures the
allocated comp_channel struct is kfree'd.
Detected by CoverityScan, CID#1462359 ("Unchecked return value")
Fixes:
|
||
---|---|---|
.. | ||
cdev | ||
dim2 | ||
Documentation | ||
i2c | ||
net | ||
sound | ||
usb | ||
video | ||
core.c | ||
core.h | ||
Kconfig | ||
Makefile | ||
TODO |