Re: NULL pointer deref at wext ioctl (Re: [PATCH] compat-2.6: adding ethtool.h to compat-2.6.31.h)

Johannes Berg
2009-10-09T08:06:32Z

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

On Thu, 2009-10-08 at 20:14 -0400, Luis R. Rodriguez wrote:

> > There are some harmless warnings from using the old header, but
> > otherwise it is working as it should:
> > CC [M] /home/Hin-Tak/tmp-git/compat-wireless-2.6/net/wireless/sme.o
> > /home/Hin-Tak/tmp-git/compat-wireless-2.6/net/wireless/sme.c: In
> > function ‘__cfg80211_connect_result’:
> > /home/Hin-Tak/tmp-git/compat-wireless-2.6/net/wireless/sme.c:370:
> > warning: passing argument 4 of ‘wireless_send_event’ discards
> > qualifiers from pointer target type
> > include/net/iw_handler.h:443: note: expected ‘char *’ but argument is
> > of type ‘const u8 *’

> The last argument to wireless_send_event() was changed to be const on
> 2.6.32, cant think of a way to avoid this warning.

Yeah, it was never modified though so the warning is harmless.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]