Commit cd73f644 authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: get atm_guess_pdu2truesize() right

parent d23f682e
......@@ -399,9 +399,9 @@ void vcc_remove_socket(struct sock *sk);
*
*/
static inline int atm_guess_pdu2truesize(int pdu_size)
static inline int atm_guess_pdu2truesize(int size)
{
return ((pdu_size+15) & ~15) + sizeof(struct sk_buff);
return (SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment