catc: Use heap buffer for memory size test
authorBen Hutchings <ben@decadent.org.uk>
Sat, 4 Feb 2017 16:57:04 +0000 (16:57 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:47 +0000 (14:04 +0200)
commit6b7c152578ab00cdb7da05481dafb4a99b1a316d
treeae4b6d01b4e53300cf4ffe15e8ee1e999ec8b87b
parentf3487f846cf73c13adafe99ee3d078a18d189dae
catc: Use heap buffer for memory size test

commit 2d6a0e9de03ee658a9adc3bfb2f0ca55dff1e478 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")
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/catc.c