diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2015-12-10 10:37:51 +0100 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2016-01-25 10:43:34 +0000 |
| commit | 819da758132009ee5a3fcb7a4d9d61006b10534c (patch) | |
| tree | fa6eae2db910c4fd2a18488a2c09696cd17f402a /include | |
| parent | 2b4c87db7b62df4a3e90313284fccb52b70bff70 (diff) | |
rfkill: copy the name into the rfkill struct
commit b7bb110008607a915298bf0f47d25886ecb94477 upstream.
Some users of rfkill, like NFC and cfg80211, use a dynamic name when
allocating rfkill, in those cases dev_name(). Therefore, the pointer
passed to rfkill_alloc() might not be valid forever, I specifically
found the case that the rfkill name was quite obviously an invalid
pointer (or at least garbage) when the wiphy had been renamed.
Fix this by making a copy of the rfkill name in rfkill_alloc().
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
