diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-08-02 11:42:22 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-19 22:47:12 +0200 |
| commit | ebce88a8a684956c7e286723f802f1b4fa9e7b76 (patch) | |
| tree | c0610e454011291d91bc2fc7b4f96ba781f09e19 /include | |
| parent | 3b21adca3d1513f8996c7623596b329fc418a0a4 (diff) | |
| download | linux-ebce88a8a684956c7e286723f802f1b4fa9e7b76.tar.gz linux-ebce88a8a684956c7e286723f802f1b4fa9e7b76.tar.bz2 linux-ebce88a8a684956c7e286723f802f1b4fa9e7b76.zip | |
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: e9089f43c9a7 ("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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
