1
0
Fork 0
remarkable-linux/drivers/misc/mic/scif
Dan Carpenter 96e5b8cc3c misc: mic: SCIF Fix scif_get_new_port() error handling
[ Upstream commit a39284ae9d ]

There are only 2 callers of scif_get_new_port() and both appear to get
the error handling wrong.  Both treat zero returns as error, but it
actually returns negative error codes and >= 0 on success.

Fixes: e9089f43c9 ("misc: mic: SCIF open close bind and listen APIs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-19 22:43:38 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
scif_api.c misc: mic: SCIF Fix scif_get_new_port() error handling 2018-09-19 22:43:38 +02:00
scif_debugfs.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_dma.c misc/mic/scif: update to new mmu_notifier semantic 2017-08-31 16:13:00 -07:00
scif_epd.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_epd.h misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_fd.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_fence.c misc: mic: silence uninitialized variable warning 2016-04-30 13:53:19 -07:00
scif_main.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_main.h sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
scif_map.h misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_mmap.c misc: mic: scif: use vma_pages(). 2016-08-30 14:45:50 +02:00
scif_nm.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_nodeqp.c misc: mic: fix memory leak 2015-10-17 21:42:29 -07:00
scif_nodeqp.h misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_peer_bus.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_peer_bus.h misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_ports.c misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_rb.c misc: mic: Fix randconfig build error by including errno.h 2015-06-12 17:01:43 -07:00
scif_rb.h
scif_rma.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
scif_rma.h misc: mic: SCIF RMA header file 2015-10-04 12:54:54 +01:00
scif_rma_list.c misc: mic: SCIF RMA list operations 2015-10-04 12:54:54 +01:00
scif_rma_list.h misc: mic: SCIF RMA list operations 2015-10-04 12:54:54 +01:00