linux/drivers/staging/most
Colin Ian King 5ae890780e staging: most: cdev: add missing check for cdev_add failure
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: 9bc79bbcd0 ("Staging: most: add MOST driver's aim-cdev module")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-04 12:36:14 +01:00
..
Documentation staging: most: Documentation: add information to driver_usage file 2018-12-17 16:10:20 +01:00
cdev staging: most: cdev: add missing check for cdev_add failure 2019-02-04 12:36:14 +01:00
dim2 staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
i2c staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
net staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
sound staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
usb staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
video staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
Kconfig staging: most: video: rename module 2017-11-27 09:20:34 +01:00
Makefile staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
TODO
core.c staging: most: use format specifier "%s" in snprintf 2018-11-09 04:34:12 -08:00
core.h staging: most: sound: call snd_card_new with struct device 2018-05-08 13:41:50 +02:00