On 7 March 2014 08:09, Michal Kazior <michal.kazior@xxxxxxxxx> wrote: > If chanctx is missing on a given vif then the band > is assumed to be 2GHz. However if hw doesn't > support 2GHz band then mac80211 ended up with a > NULL dereference. > > This fixes a splat: > > [ 4605.207223] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018 > [ 4605.210789] IP: [<ffffffffa07b5635>] ieee80211_parse_bitrates+0x65/0x110 [mac80211] > > The splat was preceeded by WARN_ON(!chanctx_conf) > in ieee80211_get_sdata_band(). > > Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx> > --- Drop this, please. There are more places that need sband to be NULL-checked. I'll send out a more thorough patch later. Michał -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html