diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-05-30 08:18:41 +0200 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-05-30 08:25:44 +0200 |
commit | cdff5406238c6d6f38c789a78546bc94a8ab6b41 (patch) | |
tree | 7d57716ff31bdac5b8ad1be1eb52ddfed776fd78 /package/kernel/mac80211/patches | |
parent | efcaa046b78ae7c2b2bd9b3d8fd6879c099c95f2 (diff) | |
download | master-31e0f0ae-cdff5406238c6d6f38c789a78546bc94a8ab6b41.tar.gz master-31e0f0ae-cdff5406238c6d6f38c789a78546bc94a8ab6b41.tar.bz2 master-31e0f0ae-cdff5406238c6d6f38c789a78546bc94a8ab6b41.zip |
mac80211: brcmfmac: return -ENFILE if interface exists
This makes brcmfmac compatible with mac80211 which uses dev_alloc_name
(and so returns -ENFILE on error).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'package/kernel/mac80211/patches')
-rw-r--r-- | package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch b/package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch index 5f69043ada..4f22a4e719 100644 --- a/package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch +++ b/package/kernel/mac80211/patches/862-brcmfmac-workaround-bug-with-some-inconsistent-BSSes.patch @@ -42,7 +42,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com> + dev = dev_get_by_name(&init_net, name); + if (dev) { + dev_put(dev); -+ return ERR_PTR(-EEXIST); ++ return ERR_PTR(-ENFILE); + } + brcmf_dbg(TRACE, "enter: %s type %d\n", name, type); |