]> git.baikalelectronics.ru Git - kernel.git/commit
wext: optimise, comment and fix event sending
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 24 Jun 2009 01:34:49 +0000 (01:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jul 2009 15:53:37 +0000 (08:53 -0700)
commit026dc922052ac1457f02f3e65315b2c58ebf342c
treea93bd6d6b40e0271bb0e2e4ab775e2e68bc041e8
parenta4745608424e0bc30fe662eef5a62b125a40d62e
wext: optimise, comment and fix event sending

The current function for sending events first allocates the
event stream buffer, and then an skb to copy the event stream
into. This can be done in one go. Also, the current function
leaks kernel data to userspace in a 4 uninitialised bytes,
initialise those explicitly. Finally also add a few useful
comments, as opposed to the current comments.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/wireless/wext.c