vxlan: check return value of gro_cells_init()
authorTaehee Yoo <ap420073@gmail.com>
Wed, 18 Mar 2020 13:28:09 +0000 (13:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:39 +0000 (11:01 +0200)
commit53d0bf064c9ff4263128e1f0459a0e74c087f43f
treeea9be0894f46197bd4aebe9d10cdffd34fa6ec19
parenta6ce82deba5cbeea18c6b91f4237c7f9e911745b
vxlan: check return value of gro_cells_init()

[ Upstream commit 384d91c267e621e0926062cfb3f20cb72dc16928 ]

gro_cells_init() returns error if memory allocation is failed.
But the vxlan module doesn't check the return value of gro_cells_init().

Fixes: 58ce31cca1ff ("vxlan: GRO support at tunnel layer")`
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c