Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7661e975 authored by Ivaylo Dimitrov's avatar Ivaylo Dimitrov Committed by John W. Linville
Browse files

wl1251: use skb_trim to make skb shorter



the current code is directly setting skb->len, which is not correct and
brings problems with HAVE_EFFICIENT_UNALIGNED_ACCESS enabled in config

Signed-off-by: default avatarIvaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4c59ff22
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ static void wl1251_rx_body(struct wl1251 *wl,
	wl1251_mem_read(wl, rx_packet_ring_addr, rx_buffer, length);

	/* The actual length doesn't include the target's alignment */
	skb->len = desc->length  - PLCP_HEADER_LENGTH;
	skb_trim(skb, desc->length - PLCP_HEADER_LENGTH);

	fc = (u16 *)skb->data;