aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.h
diff options
context:
space:
mode:
authorWang Hai <[email protected]>2020-07-30 07:24:19 +0000
committerDavid S. Miller <[email protected]>2020-07-31 00:44:28 +0000
commitbd69058f50d5ffa659423bcfa6fe6280ce9c760a (patch)
treeb92ebb3578997999da2a3fc344456046ca1cdd73 /net/bluetooth/hci_request.h
parentMerge branch 'net-ethernet-use-generic-power-management' (diff)
downloadkernel-bd69058f50d5ffa659423bcfa6fe6280ce9c760a.tar.gz
kernel-bd69058f50d5ffa659423bcfa6fe6280ce9c760a.zip
net: ll_temac: Use devm_platform_ioremap_resource_byname()
platform_get_resource() may fail and return NULL, so we had better check its return value to avoid a NULL pointer dereference a bit later in the code. Fix it to use devm_platform_ioremap_resource_byname() instead of calling platform_get_resource_byname() and devm_ioremap(). Fixes: 8425c41d1ef7 ("net: ll_temac: Extend support to non-device-tree platforms") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wang Hai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.h')
0 files changed, 0 insertions, 0 deletions