Messages in this thread |  | | | Subject | Re: [PATCH 2/2] mac80211: pid, fix memory corruption | | From | Johannes Berg <> | | Date | Mon, 04 May 2009 18:07:17 +0200 |
| |
On Mon, 2009-05-04 at 18:04 +0200, Jiri Slaby wrote:
> + for (i = 0; i < IEEE80211_NUM_BANDS; i++) { > + sband = hw->wiphy->bands[i]; > + if (sband->n_bitrates > max_rates) > + max_rates = sband->n_bitrates; > + } > + > /* We can safely assume that sband won't change unless we get > * reinitialized. */ > - rinfo = kmalloc(sizeof(*rinfo) * sband->n_bitrates, GFP_ATOMIC); > + rinfo = kmalloc(sizeof(*rinfo) * max_rates, GFP_ATOMIC);
I suppose you should remove the comment...
johannes [unhandled content-type:application/pgp-signature] |  |