lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <m2i427d64721004201807z2888dd31oc1c54b61fb2d8078@mail.gmail.com>
Date:	Wed, 21 Apr 2010 09:07:14 +0800
From:	Axel Lin <axel.lin@...il.com>
To:	linux-kernel <linux-kernel@...r.kernel.org>
Cc:	Edouard TISSERANT <edouard.tisserant@...adoo.fr>,
	Dmitry Torokhov <dtor@...l.ru>, Greg KH <gregkh@...e.de>
Subject: [PATCH] acecad: fix incorrect size parameter in usb_buffer_free

The size allocated by usb_buffer_alloc is 8, however the size free by
usb_buffer_free in usb_acecad_disconnect is 10.
This patch corrects the size parameter in usb_buffer_free.

Signed-off-by: Axel Lin <axel.lin@...il.com>
Cc: Dmitry Torokhov <dtor@...l.ru>
Cc: Greg KH <gregkh@...e.de>
---
 drivers/input/tablet/acecad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/tablet/acecad.c b/drivers/input/tablet/acecad.c
index 670c61c..265753c 100644
--- a/drivers/input/tablet/acecad.c
+++ b/drivers/input/tablet/acecad.c
@@ -256,7 +256,7 @@ static void usb_acecad_disconnect(struct
usb_interface *intf)
 		usb_kill_urb(acecad->irq);
 		input_unregister_device(acecad->input);
 		usb_free_urb(acecad->irq);
-		usb_buffer_free(interface_to_usbdev(intf), 10, acecad->data,
acecad->data_dma);
+		usb_buffer_free(interface_to_usbdev(intf), 8, acecad->data,
acecad->data_dma);
 		kfree(acecad);
 	}
 }
-- 
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ