diff options
author | sensoray-dev <linux-dev@sensoray.com> | 2014-02-28 19:19:44 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 09:28:31 -0300 |
commit | 4a1df5e8f6712df3b5f8aeb09771a1169ddd8e8c (patch) | |
tree | 10288101a5804d17dc21d029209a9cc5ea5649ed /drivers | |
parent | 2a0489d351b1cefff6be2f6ac33826788da35266 (diff) | |
download | linux-4a1df5e8f6712df3b5f8aeb09771a1169ddd8e8c.tar.bz2 |
[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')
-rw-r--r-- | drivers/media/usb/s2255/s2255drv.c | 5 |
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) mutex_lock(&dev->cmdlock); chn_rev = G_chnmap[vc->idx]; - buffer = kzalloc(512, GFP_KERNEL); - if (buffer == NULL) { - dev_err(&dev->udev->dev, "out of mem\n"); - return -ENOMEM; - } /* send the stop command */ buffer[0] = IN_DATA_TOKEN; buffer[1] = (__le32) cpu_to_le32(chn_rev); |