Skip to contentSkip to conversation

s2255drv: urgent memory leak fix.

PATCH New Dean Anderson 1 participant 1 message Feb 28, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s2255drv: urgent memory leak fix.

Critical bug fix. Fixes memory leak introduced by commit 47d8c881c304642a68d398b87d9e8846e643c81a.

---
 drivers/media/usb/s2255/s2255drv.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/media/usb/s2255/s2255drv.c +0 -5
index ef66b1b..4964194 100644
@@ -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);
Signature · 1 line
1.7.9.5