All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: re: xfrm: Assign the inner mode output function to the dst
Date: Fri, 28 Oct 2011 15:18:24 +0000	[thread overview]
Message-ID: <20111028151822.GA12707@elgon.mountain> (raw)

[ Hi.  Smatch is complaining about a really old patch here.  Sorry
  for that.  I will fix it to detect better which warnings are new
  but I saw that there was some work done in this function recently
  so I decided to send this email anyway.  --dan ]

Hello Steffen Klassert,

This is a semi-automatic email about new static checker warnings.

The patch 43a4dea4c9d4: "xfrm: Assign the inner mode output function 
to the dst entry" from May 9, 2011, leads to the following Smatch 
complaint:

net/ipv6/xfrm6_output.c +154 __xfrm6_output()
	 error: we previously assumed 'x' could be null (see line 149)

net/ipv6/xfrm6_output.c
   148	
   149		if ((x && x->props.mode = XFRM_MODE_TUNNEL) &&
                     ^
Check.

   150		    ((skb->len > mtu && !skb_is_gso(skb)) ||
   151			dst_allfrag(skb_dst(skb)))) {
   152				return ip6_fragment(skb, x->outer_mode->afinfo->output_finish);
   153		}
   154		return x->outer_mode->afinfo->output_finish(skb);
                       ^^^
New dereference.

   155	}
   156	

regards,
dan carpenter


             reply	other threads:[~2011-10-28 15:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28 15:18 Dan Carpenter [this message]
2011-10-29 12:19 ` xfrm: Assign the inner mode output function to the dst Steffen Klassert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111028151822.GA12707@elgon.mountain \
    --to=dan.carpenter@oracle.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.