summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-08-06 05:00:34 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-03 13:03:52 -0300
commit0c61cc3ba4c9b74cfdd6a1ee07492199ffdd9818 (patch)
treefeedaa173d79e1d4884d9c569acf9fd1ba14f56b
parent8513e14457ad05c517f6f6f520c270a6eebf0472 (diff)
downloadtalos-obmc-linux-0c61cc3ba4c9b74cfdd6a1ee07492199ffdd9818.tar.gz
talos-obmc-linux-0c61cc3ba4c9b74cfdd6a1ee07492199ffdd9818.zip
[media] dib7000p: return error code on allocation failure
The goto needs to be moved after the assignment. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/dib7000p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/dib7000p.c b/drivers/media/dvb/frontends/dib7000p.c
index 4eb9c2b49cd5..ce8534ff142e 100644
--- a/drivers/media/dvb/frontends/dib7000p.c
+++ b/drivers/media/dvb/frontends/dib7000p.c
@@ -1598,8 +1598,8 @@ int dib7000pc_detection(struct i2c_adapter *i2c_adap)
return -ENOMEM;
rx = kzalloc(2*sizeof(u8), GFP_KERNEL);
if (!rx) {
- goto rx_memory_error;
ret = -ENOMEM;
+ goto rx_memory_error;
}
msg[0].buf = tx;
OpenPOWER on IntegriCloud