|
@@ -588,8 +588,7 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
|
|
|
}
|
|
|
|
|
|
offset += skb_transport_offset(skb);
|
|
|
- if (skb_copy_bits(skb, offset, &csum, 2))
|
|
|
- BUG();
|
|
|
+ BUG_ON(skb_copy_bits(skb, offset, &csum, 2));
|
|
|
|
|
|
/* in case cksum was not initialized */
|
|
|
if (unlikely(csum))
|
|
@@ -601,8 +600,7 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
|
|
|
if (csum == 0 && fl6->flowi6_proto == IPPROTO_UDP)
|
|
|
csum = CSUM_MANGLED_0;
|
|
|
|
|
|
- if (skb_store_bits(skb, offset, &csum, 2))
|
|
|
- BUG();
|
|
|
+ BUG_ON(skb_store_bits(skb, offset, &csum, 2));
|
|
|
|
|
|
send:
|
|
|
err = ip6_push_pending_frames(sk);
|