diff options
author | James Minor <james.minor@ni.com> | 2015-02-24 12:58:20 -0600 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-02-28 21:31:12 +0100 |
commit | 76a70e9c4b45fc1dbcbff6f7ae88ac7e1ddfb677 (patch) | |
tree | 1f23e9cf5066d66b207484ff6839a8e53fa6c70f /net/wireless/sme.c | |
parent | 36ef906ee8fefbfac3844206e66d8450e6221c69 (diff) |
cfg80211-wext: return -E2BIG when buffer can't hold full BSS entry
When using the wext compatibility code in cfg80211, part of the IEs
can be truncated if the passed user buffer is large enough for part
of the BSS but not large enough for all of the IEs. This can cause
an EAP network to show up as a PSK network.
Always return -E2BIG in this case to avoid truncating data.
Since this changes the control flow, use an on-stack variable for
a small buffer instead of allocating it.
Signed-off-by: James Minor <james.minor@ni.com>
[rework patch to error out immediately, use _check wrappers]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/sme.c')
0 files changed, 0 insertions, 0 deletions