Skip to content

Commit 570e57b

Browse files
Eric Dumazetdavem330
authored andcommitted
atm: use SKB_TRUESIZE() in atm_guess_pdu2truesize()
SKB_TRUESIZE() provides a better approximation of expected skb truesize. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a2d7ec5 commit 570e57b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/atmdev.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ void atm_dev_release_vccs(struct atm_dev *dev);
452452

453453
static inline int atm_guess_pdu2truesize(int size)
454454
{
455-
return SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info);
455+
return SKB_TRUESIZE(size);
456456
}
457457

458458

0 commit comments

Comments
 (0)