]> git.hungrycats.org Git - linux/commit
[PATCH] sparse: ->ifr_data fixes
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 3 Jun 2004 17:38:18 +0000 (10:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 17:38:18 +0000 (10:38 -0700)
commit53f97fb4cac72e2939f3832816ebe2f10fc5144c
tree994b62b74db1191d834a2022b46cdd0c32e10af6
parentee5cedda959d27baf2749401c78c39a6db818593
[PATCH] sparse: ->ifr_data fixes

b44.c: ->ioctl() is broken, since it uses &ifr->ifr_data instead of
ifr->ifr_data itself.  Surprise, surprise, copy_from_user() on that address
doesn't do any good...

baycom_epp.c: does get_user() of the first word of structure, then
immediately does copy_from_user() on the entire thing and completely ignores
the value read by get_user() (it uses the same value in copied structure
instead).  Bogus get_user() call removed.
drivers/net/b44.c
drivers/net/hamradio/baycom_epp.c