diff options
author | Wang Hai <wanghai38@huawei.com> | 2020-07-30 15:24:19 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-30 17:44:28 -0700 |
commit | bd69058f50d5ffa659423bcfa6fe6280ce9c760a (patch) | |
tree | b92ebb3578997999da2a3fc344456046ca1cdd73 /net/bluetooth/a2mp.h | |
parent | 3ce38d39ee2c7fe7557901c445683edec5f10d6d (diff) |
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 <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/a2mp.h')
0 files changed, 0 insertions, 0 deletions