catc: Use heap buffer for memory size test
commitf8038ac03063fddc9c174935fdd2704b7ee15725
authorBen Hutchings <ben@decadent.org.uk>
Sat, 4 Feb 2017 16:57:04 +0000 (4 16:57 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Mar 2017 02:27:10 +0000 (16 02:27 +0000)
tree33944892cb68e3a310f40f6db8997847ccf65575
parentfda37c1c5b3f9457cecf2c01993921a371f3e4fb
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>
drivers/net/usb/catc.c