]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: rtl8723bs: fix an error code in isFileReadable()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jun 2017 09:10:56 +0000 (12:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 10:43:54 +0000 (12:43 +0200)
commit7177153cc1a52d77ff5b21c4cfd20bd35c1e03ef
tree6e72930bc8f025aaeb6062028601a45d19b4de2d
parent68f470cb01c4e41986c859d9d2cc5e72a38e68c2
Staging: rtl8723bs: fix an error code in isFileReadable()

The caller only cares about zero vs non-zero so this code actually works
fine but we should be returning a negative error code instead of a valid
pointer casted to int.

Fixes: 88a1abb19b1d ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/osdep_service.c