net/failsafe: fix invalid free
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 18 Jan 2018 13:51:39 +0000 (13:51 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sun, 21 Jan 2018 14:51:52 +0000 (15:51 +0100)
commit9720e325f040dc536ef76606d2437d1653698a17
treebfba0543f9549a5b4759f73942da43f7ffd45ea8
parentfdadc4f92b3e6ca692a2f23b683e6fe1e977f724
net/failsafe: fix invalid free

rte_free() is not supposed to work with pointers returned by calloc().

Fixes: a0194d828100 ("net/failsafe: add flexible device definition")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/failsafe_args.c