linux/drivers/rapidio
Dan Carpenter 5ac188b12e drivers/rapidio/rio_cm.c: fix potential oops in riocm_ch_listen()
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: b6e8d4aa11 ("rapidio: add RapidIO channelized messaging driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Alexandre Bounine <alexandre.bounine@idt.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-03-07 18:32:01 -08:00
..
devices cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
switches
Kconfig rapidio: consolidate RAPIDIO config entry in drivers/rapidio 2018-11-23 11:46:13 +09:00
Makefile
rio-access.c
rio-driver.c
rio-scan.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
rio-sysfs.c rapidio: rio-sysfs.c: convert to use BUS_ATTR_WO 2019-01-22 14:25:26 +01:00
rio.c
rio.h
rio_cm.c drivers/rapidio/rio_cm.c: fix potential oops in riocm_ch_listen() 2019-03-07 18:32:01 -08:00