aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-07-10 07:22:25 +0000
committerDaniel Lezcano <[email protected]>2017-08-11 10:53:21 +0000
commit9e80dbd87286d3252ac2f78c6465c16e2ec8d476 (patch)
tree284dc87f3c0a0043cc0626b4d177afca793b4130 /drivers/net/xen-netback/interface.c
parentclocksource/drivers/em_sti: Fix error return codes in em_sti_probe() (diff)
downloadkernel-9e80dbd87286d3252ac2f78c6465c16e2ec8d476.tar.gz
kernel-9e80dbd87286d3252ac2f78c6465c16e2ec8d476.zip
clocksource/drivers/timer-of: Checking for IS_ERR() instead of NULL
The current code checks the return value of the of_io_request_and_map() function as it was returning a NULL pointer in case of error. However, it returns an error code encoded in the pointer return value, not a NULL value. Fix this by checking the returned pointer against IS_ERR() and return the error with PTR_ERR(). Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions