xt_SYSRQ: do not print error messages on ENOMEM

Memory allocation failures are usually already reported by SLAB and
the ENOMEM error code itself.
This commit is contained in:
Jan Engelhardt
2010-03-26 23:17:23 +01:00
parent 02d8bdc3d9
commit dd8fdd09c8
2 changed files with 4 additions and 16 deletions

View File

@@ -179,11 +179,8 @@ tee_tg4(struct sk_buff **pskb, const struct xt_target_param *par)
* --gateway.
*/
skb = skb_copy(skb, GFP_ATOMIC);
if (skb == NULL) {
if (net_ratelimit())
pr_debug(KBUILD_MODNAME "copy failed!\n");
if (skb == NULL)
return XT_CONTINUE;
}
#ifdef WITH_CONNTRACK
/*