mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +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 |