diff options
| author | Dan Carpenter <[email protected]> | 2018-08-02 08:42:22 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-08-05 14:29:11 +0000 |
| commit | a39284ae9d2ad09975c8ae33f1bd0f05fbfbf6ee (patch) | |
| tree | c5fccfac26dd54e4296ed2f4bbe20907264a6b96 /lib/bitmap.c | |
| parent | misc: cxl: changed asterisk position (diff) | |
| download | kernel-a39284ae9d2ad09975c8ae33f1bd0f05fbfbf6ee.tar.gz kernel-a39284ae9d2ad09975c8ae33f1bd0f05fbfbf6ee.zip | |
misc: mic: SCIF Fix scif_get_new_port() error handling
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
