diff options
author | Sara Sharon <sara.sharon@intel.com> | 2018-08-29 09:57:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-10 09:54:19 +0300 |
commit | 9a5d353908db44d639108dee9fe05c0a8803b572 (patch) | |
tree | 780bfc0a530093dd758e95cb3735236c487ea2d7 /drivers/gpio/gpio-sch311x.c | |
parent | 79448960e3d701f498accd3aa493c5e0851c639c (diff) | |
download | linux-9a5d353908db44d639108dee9fe05c0a8803b572.tar.xz |
mac80211: avoid kernel panic when building AMSDU from non-linear SKB
[ Upstream commit 166ac9d55b0ab70b644e429be1f217fe8393cbd7 ]
When building building AMSDU from non-linear SKB, we hit a
kernel panic when trying to push the padding to the tail.
Instead, put the padding at the head of the next subframe.
This also fixes the A-MSDU subframes to not have the padding
accounted in the length field and not have pad at all for
the last subframe, both required by the spec.
Fixes: 6e0456b54545 ("mac80211: add A-MSDU tx support")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Reviewed-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpio/gpio-sch311x.c')
0 files changed, 0 insertions, 0 deletions