android_kernel_oneplus_msm8998/drivers/misc/mic
Dan Carpenter fb9dabb6fc misc: mic: SCIF Fix scif_get_new_port() error handling
[ Upstream commit a39284ae9d2ad09975c8ae33f1bd0f05fbfbf6ee ]

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:48:56 +02:00
..
bus misc: mic: replace kfree with put_device 2015-10-17 21:42:29 -07:00
card misc: mic: Remove COSM functionality from the MIC card driver 2015-10-04 12:46:06 +01:00
common misc: mic: Remove COSM functionality from the MIC card driver 2015-10-04 12:46:06 +01:00
cosm misc: mic: Fix randconfig build error 2015-10-17 21:42:29 -07:00
cosm_client misc: mic: COSM client driver 2015-10-04 12:46:06 +01:00
host misc: mic: Remove COSM functionality from the MIC host driver 2015-10-04 12:46:06 +01:00
scif misc: mic: SCIF Fix scif_get_new_port() error handling 2018-09-19 22:48:56 +02:00
Kconfig misc: mic: Fix SCIF build failure with IOMMU_SUPPORT disabled 2015-10-05 04:37:28 +01:00
Makefile misc: mic: Update MIC host daemon with COSM changes 2015-10-04 12:54:54 +01:00