<div><div><div dir="auto">Write behind related changes introduced new defects.</div></div></div><div><div><br><div class="gmail_quote"><div dir="ltr">---------- Forwarded message ---------<br>From: <span dir="ltr">&lt;<a href="mailto:scan-admin@coverity.com" target="_blank">scan-admin@coverity.com</a>&gt;</span><br>Date: Fri, 12 Oct 2018 at 20:43<br>Subject: New Defects reported by Coverity Scan for gluster/glusterfs<br>To:  &lt;<a href="mailto:atin.mukherjee83@gmail.com" target="_blank">atin.mukherjee83@gmail.com</a>&gt;<br></div><br><br>Hi,<br>
<br>
Please find the latest report on new defect(s) introduced to gluster/glusterfs found with Coverity Scan.<br>
<br>
2 new defect(s) introduced to gluster/glusterfs found with Coverity Scan.<br>
3 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.<br>
<br>
New defect(s) Reported-by: Coverity Scan<br>
Showing 2 of 2 defect(s)<br>
<br>
<br>
** CID 1396102:  Null pointer dereferences  (NULL_RETURNS)<br>
/xlators/performance/write-behind/src/write-behind.c: 2474 in wb_mark_readdirp_start()<br>
<br>
<br>
________________________________________________________________________________________________________<br>
*** CID 1396102:  Null pointer dereferences  (NULL_RETURNS)<br>
/xlators/performance/write-behind/src/write-behind.c: 2474 in wb_mark_readdirp_start()<br>
2468     wb_mark_readdirp_start(xlator_t *this, inode_t *directory)<br>
2469     {<br>
2470         wb_inode_t *wb_directory_inode = NULL;<br>
2471     <br>
2472         wb_directory_inode = wb_inode_create(this, directory);<br>
2473     <br>
&gt;&gt;&gt;     CID 1396102:  Null pointer dereferences  (NULL_RETURNS)<br>
&gt;&gt;&gt;     Dereferencing a null pointer &quot;wb_directory_inode&quot;.<br>
2474         if (!wb_directory_inode-&gt;lock.spinlock)<br>
2475             return;<br>
2476     <br>
2477         LOCK(&amp;wb_directory_inode-&gt;lock);<br>
2478         {<br>
2479             GF_ATOMIC_INC(wb_directory_inode-&gt;readdirps);<br>
<br>
** CID 1396101:  Null pointer dereferences  (NULL_RETURNS)<br>
/xlators/performance/write-behind/src/write-behind.c: 2494 in wb_mark_readdirp_end()<br>
<br>
<br>
________________________________________________________________________________________________________<br>
*** CID 1396101:  Null pointer dereferences  (NULL_RETURNS)<br>
/xlators/performance/write-behind/src/write-behind.c: 2494 in wb_mark_readdirp_end()<br>
2488     {<br>
2489         wb_inode_t *wb_directory_inode = NULL, *wb_inode = NULL, *tmp = NULL;<br>
2490         int readdirps = 0;<br>
2491     <br>
2492         wb_directory_inode = wb_inode_ctx_get(this, directory);<br>
2493     <br>
&gt;&gt;&gt;     CID 1396101:  Null pointer dereferences  (NULL_RETURNS)<br>
&gt;&gt;&gt;     Dereferencing a null pointer &quot;wb_directory_inode&quot;.<br>
2494         if (!wb_directory_inode-&gt;lock.spinlock)<br>
2495             return;<br>
2496     <br>
2497         LOCK(&amp;wb_directory_inode-&gt;lock);<br>
2498         {<br>
2499             readdirps = GF_ATOMIC_DEC(wb_directory_inode-&gt;readdirps);<br>
<br>
<br>
________________________________________________________________________________________________________<br>
To view the defects in Coverity Scan visit, <a href="https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBK54bFWohdObZ6wlkeK264nDC24cnLwH4MTOSDXRjQcO27-2F6DmQXPB4g4Mz-2BEJJ0-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRGI3dzUd2Ukeqo7jOkDVtDwdofsVY7aGvZQg7zRE31MpIpZfuKb72GMUDqgUubcYrIu5oXcyupFTk-2BbhUXFdLHUSfe4AbOPNeG8BbDwGUW1v07zqQu8VKIaMFyP-2BoYbiYsfmt7-2FPg8uG5gutfCHZL61I0rptYdI3rhGJ6h55uDbGL4twf-2Fi-2F-2FuWXuVz4tE-2BiLw-3D" rel="noreferrer" target="_blank">https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBK54bFWohdObZ6wlkeK264nDC24cnLwH4MTOSDXRjQcO27-2F6DmQXPB4g4Mz-2BEJJ0-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRGI3dzUd2Ukeqo7jOkDVtDwdofsVY7aGvZQg7zRE31MpIpZfuKb72GMUDqgUubcYrIu5oXcyupFTk-2BbhUXFdLHUSfe4AbOPNeG8BbDwGUW1v07zqQu8VKIaMFyP-2BoYbiYsfmt7-2FPg8uG5gutfCHZL61I0rptYdI3rhGJ6h55uDbGL4twf-2Fi-2F-2FuWXuVz4tE-2BiLw-3D</a><br>
<br>
  To manage Coverity Scan email notifications for &quot;<a href="mailto:atin.mukherjee83@gmail.com" target="_blank">atin.mukherjee83@gmail.com</a>&quot;, click <a href="https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4F4Na18V6TzekbRgLfnxbftCtNrSI0AdVE2H7Oze59ZO0QossEy3LBj8V8EoFBmLcCGWfAfPSpkvjpvSyEnHW4SE-2Fd5u6fIUaVdSUke9RseU-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRGI3dzUd2Ukeqo7jOkDVtDwdofsVY7aGvZQg7zRE31MpHd29gt9gjsKh3qRlC2RNFOu5d1QLlY3kA1t3-2BZa7JxqLa9L0-2FbeQCY21g0-2BWD9nj7BVPc7SCSBZSdLtNp0BxH2zEpj2wcPymqs8Yua6j-2FpBNb5CGYrqE-2F1elotYuozHtizG6MZ7T8-2FFr6hkCGYystU-3D" rel="noreferrer" target="_blank">https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4F4Na18V6TzekbRgLfnxbftCtNrSI0AdVE2H7Oze59ZO0QossEy3LBj8V8EoFBmLcCGWfAfPSpkvjpvSyEnHW4SE-2Fd5u6fIUaVdSUke9RseU-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRGI3dzUd2Ukeqo7jOkDVtDwdofsVY7aGvZQg7zRE31MpHd29gt9gjsKh3qRlC2RNFOu5d1QLlY3kA1t3-2BZa7JxqLa9L0-2FbeQCY21g0-2BWD9nj7BVPc7SCSBZSdLtNp0BxH2zEpj2wcPymqs8Yua6j-2FpBNb5CGYrqE-2F1elotYuozHtizG6MZ7T8-2FFr6hkCGYystU-3D</a><br>
<br>
</div></div>
</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--Atin</div>