]> 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)
commit5cc429f5f8600642cfd0a4c9eca0802be5de0f46
tree6e72930bc8f025aaeb6062028601a45d19b4de2d
parent4280ea1ed4c155212e20bbc274324a24567bfbe3
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: 84ed90a855bc ("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