nbd: fix possible memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 27 Jan 2015 12:38:22 +0000 (18:08 +0530)
committerMarkus Pargmann <mpa@pengutronix.de>
Thu, 5 Mar 2015 07:51:03 +0000 (08:51 +0100)
commitff6b8090e26ef7649ef0cc6b42389141ef48b0cf
treed95d23a2b1877e052c781eaefa9658c0b4e10774
parentc517d838eb7d07bbe9507871fab3931deccff539
nbd: fix possible memory leak

we have already allocated memory for nbd_dev, but we were not
releasing that memory and just returning the error value.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Paul Clements <Paul.Clements@SteelEye.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
drivers/block/nbd.c