summaryrefslogtreecommitdiffstats
path: root/drivers/of/irq.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-03-08 01:29:33 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-08 03:32:01 +0100
commit5ac188b12e7cbdd92dee60877d1fac913fc1d074 (patch)
treebd26bfcf5ba2bd02901fe83fd49d027330937ddb /drivers/of/irq.c
parentkernel: workqueue: clarify wq_worker_last_func() caller requirements (diff)
downloadlinux-5ac188b12e7cbdd92dee60877d1fac913fc1d074.tar.xz
linux-5ac188b12e7cbdd92dee60877d1fac913fc1d074.zip
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: b6e8d4aa1110 ("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>
Diffstat (limited to 'drivers/of/irq.c')
0 files changed, 0 insertions, 0 deletions