datapath: Avoid __copy_to/from_user(), __get/put_user() functions.
authorBen Pfaff <blp@nicira.com>
Thu, 13 May 2010 20:18:22 +0000 (13:18 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 13 May 2010 22:29:50 +0000 (15:29 -0700)
commit776f10ce0f008e95b457f8c6b69b9748d8d1fdbd
treeb1ab6cdedeb71c6a77586d72fb182e1c21b8a328
parent44e05ecafe7c164a328a0108b8685f21569d2a37
datapath: Avoid __copy_to/from_user(), __get/put_user() functions.

The advantages of the double-underscore variants of copy_to_user(),
copy_from_user(), get_user(), and put_user() are pretty marginal, at best,
in the places where we are using them, and it's not always obvious that we
are making the right calls to access_ok() beforehand.  So switch to the
safe variants without double underscores.

Suggested-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c