commit | 4776c6e7f66f853011bc1fd6fe37fa63f0b6982c | [log] [tgz] |
---|---|---|
author | Luis R. Rodriguez <lrodriguez@atheros.com> | Wed May 13 17:04:39 2009 -0400 |
committer | John W. Linville <linville@tuxdriver.com> | Wed May 20 14:46:31 2009 -0400 |
tree | 9e443ddbc9ad25924b7285b0b8a0c0e1b958fc54 | |
parent | e74fbb412be9baeae5ee61e25dad0b8c1a287494 [diff] |
cfg80211: return immediately if num reg rules > NL80211_MAX_SUPP_REG_RULES This has no functional change except we save a kfree(rd) and allows us to clean this code up a bit after this. We do avoid an unnecessary kfree(NULL) but calling that was OK too. Cc: stable@kernel.org Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>