]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7286f3f05e975b141edfbd88b13d464bf59911e0
tree2886d6df130230769ec1173915c9f518e7f883cb
parent353cc38a2686ad13306325688df436b9b1e1dd9a
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