From: Colin King <colin.king@xxxxxxxxxxxxx> Date: Wed, 22 Jul 2020 18:40:03 +0100 > From: Colin Ian King <colin.king@xxxxxxxxxxxxx> > > Currently when netdev fails to allocate the error return path > fails to free the allocated object 'lid'. Fix this by setting > err to the return error code and jumping to a new label that > performs the kfree of lid before returning. > > Addresses-Coverity: ("Resource leak") > Fixes: 4b03b27349c0 ("ionic: get MTU from lif identity") > Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx> Applied.