net: fix potential null pointer dereference
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 23 May 2017 23:18:37 +0000 (18:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 16:54:02 +0000 (12:54 -0400)
commit65d786c21bf8140dac83563306f46fe0b13a9aaa
treed06216d5b8d3fa595687e5351c9768374191f167
parent11387fe4a98f75d1f4cdb3efe3b42b19205c9df5
net: fix potential null pointer dereference

Add null check to avoid a potential null pointer dereference.

Addresses-Coverity-ID: 1408831
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gtp.c