mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
5ac188b12e
If riocm_get_channel() fails, then we should just return -EINVAL.
Calling riocm_put_channel() will trigger a NULL dereference and
generally we should call put() if the get() didn't succeed.
Link: http://lkml.kernel.org/r/20190110130230.GB27017@kadam
Fixes:
|
||
---|---|---|
.. | ||
devices | ||
switches | ||
Kconfig | ||
Makefile | ||
rio_cm.c | ||
rio-access.c | ||
rio-driver.c | ||
rio-scan.c | ||
rio-sysfs.c | ||
rio.c | ||
rio.h |