Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a1df5e8 authored by sensoray-dev's avatar sensoray-dev Committed by Mauro Carvalho Chehab
Browse files

[media] s2255drv: memory leak fix



Fixes memory leak introduced by
commit 47d8c881.

Signed-off-by: default avatarDean Anderson <linux-dev@sensoray.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 2a0489d3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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);