rt2x00: fix "buffer size not provably correct" build warning
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Mon, 23 Aug 2010 21:02:22 +0000 (23:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Aug 2010 18:34:56 +0000 (14:34 -0400)
commitf8d8b7a13d3d61f99bf3dc5c9650f87f9818d7a7
tree2886d6df130230769ec1173915c9f518e7f883cb
parent8d1331b37d5b656a7a8e561f8e9d7661dd00c910
rt2x00: fix "buffer size not provably correct" build warning

rt2x00 debugfs interface doesn't check the size of the data coming
from userspace, leading to a build warning. Fix That.

v2: return EINVAL if input is too long

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00debug.c