Re: [PATCH 9/12]: wext: Dispatch and handle compat ioctls entirely in net/wireless/wext.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <linux-wireless@...>, <linville@...>, <mokuno@...>, <netdev@...>, <linux-kernel@...>
Date: Wednesday, June 4, 2008 - 8:20 am

On Tuesday 03 June 2008, David Miller wrote:

Great work! Thanks for getting one large chunk of fs/compat_ioctl.c
removed on the way.


Is it intentional that the prototypes are so different? Why not
pass a void __user *arg instead of unsigned long arg?


For the conversion, you should also use compat_ptr() instead of the
cast. This currently only makes a difference on s390, which does
not have wireless, but it's better not to give wrong examples in the
code.

	Arnd <><
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 9/12]: wext: Dispatch and handle compat ioctls en..., Arnd Bergmann, (Wed Jun 4, 8:20 am)