- fix-mem-leak-in-sidewinder-driver.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     fix mem-leak in sidewinder driver

has been removed from the -mm tree.  Its filename is

     fix-mem-leak-in-sidewinder-driver.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.

------------------------------------------------------
Subject: fix mem-leak in sidewinder driver
From: Jesper Juhl <jesper.juhl@xxxxxxxxx>


In sw_connect we leak 'buf' and 'idbuf' when we do not leave via one of the
fail* labels.  This was spotted by the coverity checker.  This patch fixes
the memory leak.

Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
Cc: Dmitry Torokhov <dtor_core@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/input/joystick/sidewinder.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN drivers/input/joystick/sidewinder.c~fix-mem-leak-in-sidewinder-driver drivers/input/joystick/sidewinder.c
--- devel/drivers/input/joystick/sidewinder.c~fix-mem-leak-in-sidewinder-driver	2006-05-10 21:55:46.000000000 -0700
+++ devel-akpm/drivers/input/joystick/sidewinder.c	2006-05-10 21:55:46.000000000 -0700
@@ -776,6 +776,8 @@ static int sw_connect(struct gameport *g
 			goto fail4;
 	}
 
+	kfree(buf);
+	kfree(idbuf);
 	return 0;
 
  fail4:	input_free_device(sw->dev[i]);
_

Patches currently in -mm which might be from jesper.juhl@xxxxxxxxx are

origin.patch
git-infiniband.patch
git-mtd.patch
small-whitespace-cleanup-for-qlogic-driver.patch
add-scsi_add_host-failure-handling-for-nsp32.patch
xtensa-remove-verify_area-macros.patch
xtensa-remove-verify_area-macros-fix.patch
oss-cs46xx-cleanup-and-tiny-bugfix.patch
i4l-memory-leak-fix-for-sc_ioctl.patch
isdn-unsafe-interaction-between-isdn_write-and-isdn_writebuf_stub.patch
isdn-unsafe-interaction-between-isdn_write-and-isdn_writebuf_stub-fix.patch
binfmt_elf-codingstyle-cleanup-and-remove-some-pointless-casts.patch
binfnt_elf-remove-more-casts.patch
ensure-null-deref-cant-possibly-happen-in-is_exported.patch
bluetooth-fix-potential-null-ptr-deref-in-dtl1_cscdtl1_hci_send_frame.patch
pnp-card_probe-fix-memory-leak.patch
moxa-remove-pointless-casts.patch
moxa-remove-pointless-check-of-tty-argument-vs-null.patch
moxa-partial-codingstyle-cleanup-spelling-fixes.patch
debug-shared-irqs.patch
remove-redundant-null-checks-before-free-in-fs.patch
remove-redundant-null-checks-before-free-in-kernel.patch
remove-redundant-null-checks-before-free-in-drivers.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux