commit | 5f0ca2fb71e28df146f590eebfe32b41171b737f | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Tue Oct 10 09:16:23 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 10 13:18:33 2017 -0700 |
tree | 97ba442e53e8eb00ea1527077fbd67c3179c5a32 | |
parent | c3d64ad4fea66d07e878b248b803ccd12c45e18c [diff] |
nfp: handle page allocation failures page_address() does not handle NULL argument gracefully, make sure we NULL-check the page pointer before passing it to page_address(). Fixes: ecd63a0217d5 ("nfp: add XDP support in the driver") Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>