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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 15:07:01 +0000 (10:07 -0500)
commit5593523f968bc86d42a035c6df47d5e0979b5ace
tree7a89aa2e527be0f102bc2ca09f5f9b26695a97d9
parent432d4f8ab03527958294ad5e539acaebfc4625e3
pegasus: Use heap buffers for all register access

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>
drivers/net/usb/pegasus.c