aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorsensoray-dev <linux-dev@sensoray.com>2014-02-28 17:19:44 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-11 08:28:31 -0400
commit4a1df5e8f6712df3b5f8aeb09771a1169ddd8e8c (patch)
tree10288101a5804d17dc21d029209a9cc5ea5649ed /drivers/media/usb
parent2a0489d351b1cefff6be2f6ac33826788da35266 (diff)
[media] s2255drv: memory leak fix
Fixes memory leak introduced by commit 47d8c881c304642a68d398b87d9e8846e643c81a. Signed-off-by: Dean Anderson <linux-dev@sensoray.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/s2255/s2255drv.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/usb/s2255/s2255drv.c b/drivers/media/usb/s2255/s2255drv.c
index 4c7513af2450..1d4ba2b80490 100644
--- a/drivers/media/usb/s2255/s2255drv.c
+++ b/drivers/media/usb/s2255/s2255drv.c
@@ -2175,11 +2175,6 @@ static int s2255_stop_acquire(struct s2255_vc *vc)
2175 2175
2176 mutex_lock(&dev->cmdlock); 2176 mutex_lock(&dev->cmdlock);
2177 chn_rev = G_chnmap[vc->idx]; 2177 chn_rev = G_chnmap[vc->idx];
2178 buffer = kzalloc(512, GFP_KERNEL);
2179 if (buffer == NULL) {
2180 dev_err(&dev->udev->dev, "out of mem\n");
2181 return -ENOMEM;
2182 }
2183 /* send the stop command */ 2178 /* send the stop command */
2184 buffer[0] = IN_DATA_TOKEN; 2179 buffer[0] = IN_DATA_TOKEN;
2185 buffer[1] = (__le32) cpu_to_le32(chn_rev); 2180 buffer[1] = (__le32) cpu_to_le32(chn_rev);