aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2008-01-25 17:50:49 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-31 22:26:53 -0500
commit04c3c01a21a098140678ab9369cc0487775b8df6 (patch)
tree3b42003a758250d41adc7c8c03d72221eef17af6 /drivers/net/usb
parent786e3dfbae8e2da422affcc1736ca1888f200a27 (diff)
rndis_host: Use 1KB buffer in rndis_unbind
rndis_command requires the caller to pass in a buffer of at least 1KB. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Bjorge Dijkstra <bjd@jooz.net> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/rndis_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c
index 96ef6a9b3113..42b161c94618 100644
--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -577,7 +577,7 @@ static void rndis_unbind(struct usbnet *dev, struct usb_interface *intf)
577 struct rndis_halt *halt; 577 struct rndis_halt *halt;
578 578
579 /* try to clear any rndis state/activity (no i/o from stack!) */ 579 /* try to clear any rndis state/activity (no i/o from stack!) */
580 halt = kzalloc(sizeof *halt, GFP_KERNEL); 580 halt = kzalloc(CONTROL_BUFFER_SIZE, GFP_KERNEL);
581 if (halt) { 581 if (halt) {
582 halt->msg_type = RNDIS_MSG_HALT; 582 halt->msg_type = RNDIS_MSG_HALT;
583 halt->msg_len = ccpu2(sizeof *halt); 583 halt->msg_len = ccpu2(sizeof *halt);