catc: Use heap buffer for memory size test
commit44a2c426d84453927e0280cd9b18162348b1d828
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:18:48 +0000 (16 02:18 +0000)
tree37eff7ce4b30071905146e70e771276381e411a5
parentb78ebd7db9155eb0a8d60e76b89f521214235278
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