diff options
author | Krzysztof Kozlowski <k.kozlowski.k@gmail.com> | 2015-07-09 22:21:20 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-09 21:43:16 -0700 |
commit | fcc028c106e5750aa66dc43595b3f29f88801ff0 (patch) | |
tree | 014e7870a3f1b8fb28c165b48cf33ee3fa348d0f /Documentation/rtc.txt | |
parent | fc5778ca3f3c57af53f0c6b6912970f6416a3a5f (diff) |
net: axienet: Fix devm_ioremap_resource return value check
Value returned by devm_ioremap_resource() was checked for non-NULL but
devm_ioremap_resource() returns IOMEM_ERR_PTR, not NULL. In case of
error this could lead to dereference of ERR_PTR.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Cc: <stable@vger.kernel.org>
Fixes: 46aa27df8853 ("net: axienet: Use devm_* calls")
Reviewed-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/rtc.txt')
0 files changed, 0 insertions, 0 deletions