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

Commit 570e57bc authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

atm: use SKB_TRUESIZE() in atm_guess_pdu2truesize()



SKB_TRUESIZE() provides a better approximation of expected skb truesize.

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a2d7ec58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -452,7 +452,7 @@ void atm_dev_release_vccs(struct atm_dev *dev);

static inline int atm_guess_pdu2truesize(int size)
{
	return SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info);
	return SKB_TRUESIZE(size);
}