pegasus: Use heap buffers for all register access
authorBen Hutchings <ben@decadent.org.uk>
Sat, 4 Feb 2017 16:56:03 +0000 (16:56 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:47:08 +0000 (00:47 +0200)
commit6a1d611e9c4b871f44ef7a1ff8069461b2792add
tree4da73b8c2cd4388de2972fb26a61f9459dc6f581
parent797971a00afd4b24b0b64938a514e8c547644623
pegasus: Use heap buffers for all register access

commit 5593523f968bc86d42a035c6df47d5e0979b5ace upstream.

Allocating USB buffers on the stack is not portable, and no longer
works on x86_64 (with VMAP_STACK enabled as per default).

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
References: https://bugs.debian.org/852556
Reported-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Tested-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Brad Spengler <spender@grsecurity.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/usb/pegasus.c