net/iucv: Free memory obtained by kzalloc
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 13 Mar 2018 15:50:06 +0000 (16:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Mar 2018 16:10:41 +0000 (18:10 +0200)
commit2980f37b6111557c2d8dbb08bce2e14bdbb83fb2
treeb3c146cbfc58f4e74ede4bf92baeae5da47253b5
parenta14b791d9863539b63b38bfab133b28fdd5029d4
net/iucv: Free memory obtained by kzalloc

[ Upstream commit fa6a91e9b907231d2e38ea5ed89c537b3525df3d ]

Free memory by calling put_device(), if afiucv_iucv_init is not
successful.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/iucv/af_iucv.c