Skip to content

Commit

Permalink
atm: use SKB_TRUESIZE() in atm_guess_pdu2truesize()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 22, 2011
1 parent a2d7ec5 commit 570e57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/atmdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 570e57b

Please sign in to comment.