The patch is not in mainline. I am putting together a branch for Joel to pull.<br><br><div class="gmail_quote">On Thu, Aug 9, 2012 at 5:22 AM, Dan Carpenter <span dir="ltr">&lt;<a href="mailto:dan.carpenter@oracle.com" target="_blank">dan.carpenter@oracle.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is still here.  I&#39;m not sure why this error message just showed<br>
up in linux-next again.  Odd.<br>
<br>
regards,<br>
dan carpenter<br>
<br>
On Tue, Aug 30, 2011 at 02:14:04PM -0700, Sunil Mushran wrote:<br>
&gt; Thanks. I&#39;ll fix the two.<br>
&gt;<br>
&gt; On 08/25/2011 06:01 PM, Dan Carpenter wrote:<br>
&gt; &gt;Hello Sunil Mushran,<br>
&gt; &gt;<br>
&gt; &gt;1dfecf810e0e: &quot;ocfs2/cluster: Clean up messages in o2net&quot;<br>
&gt; &gt;Leads to the following Smatch complaint:<br>
&gt; &gt;fs/ocfs2/cluster/tcp.c +1704 o2net_start_connect(101)<br>
&gt; &gt;      error: we previously assumed &#39;sc&#39; could be null (see line 1650)<br>
&gt; &gt;<br>
&gt; &gt;fs/ocfs2/cluster/tcp.c<br>
&gt; &gt;   1649              sc = sc_alloc(node);<br>
&gt; &gt;   1650              if (sc == NULL) {<br>
&gt; &gt;   1651                      mlog(0, &quot;couldn&#39;t allocate sc\n&quot;);<br>
&gt; &gt;   1652                      ret = -ENOMEM;<br>
&gt; &gt;   1653                      goto out;<br>
&gt; &gt;   1654              }<br>
&gt; &gt;   1655<br>
&gt; &gt;<br>
&gt; &gt;--- [snip] ---<br>
&gt; &gt;<br>
&gt; &gt;   1701      out:<br>
&gt; &gt;   1702              if (ret) {<br>
&gt; &gt;   1703                      printk(KERN_NOTICE &quot;o2net: Connect attempt to &quot; SC_NODEF_FMT<br>
&gt; &gt;   1704                             &quot; failed with errno %d\n&quot;, SC_NODEF_ARGS(sc), ret);<br>
&gt; &gt;                                                                         ^^<br>
&gt; &gt;Null dereference here.<br>
&gt; &gt;<br>
&gt; &gt;   1705                      /* 0 err so that another will be queued and attempted<br>
&gt; &gt;   1706                       * from set_nn_state */<br>
&gt; &gt;<br>
&gt; &gt;This email is from my new semi-automatic bug reporting tool script.<br>
&gt; &gt;Btw, Smatch complains about this as well:<br>
&gt; &gt;<br>
&gt; &gt;fs/ocfs2/cluster/tcp.c +549 o2net_set_nn_state(44)<br>
&gt; &gt;     error: we previously assumed &#39;old_sc&#39; could be null (see line 517)<br>
&gt; &gt;<br>
&gt; &gt;These dereferences were disabled in my old config, but Smatch detects<br>
&gt; &gt;them now that we&#39;re using normal printk()<br>
&gt; &gt;<br>
&gt; &gt;regards,<br>
&gt; &gt;dan carpenter<br>
<br>
_______________________________________________<br>
Ocfs2-devel mailing list<br>
<a href="mailto:Ocfs2-devel@oss.oracle.com">Ocfs2-devel@oss.oracle.com</a><br>
<a href="https://oss.oracle.com/mailman/listinfo/ocfs2-devel" target="_blank">https://oss.oracle.com/mailman/listinfo/ocfs2-devel</a><br>
</blockquote></div><br>