<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:39:22 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-4068] bad error return from ofd_precreate_objects()</title>
                <link>https://jira.whamcloud.com/browse/LU-4068</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;An error path in ofd_precreate_objects() applies PTR_ERR() to a NULL pointer.&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;        struct ofd_object       *fo = NULL;
        ...
        /* prepare objects */
        ostid_set_seq(&amp;amp;info-&amp;gt;fti_ostid, ostid_seq(&amp;amp;oseq-&amp;gt;os_oi));
        for (i = 0; i &amp;lt; nr; i++) {
                ostid_set_id(&amp;amp;info-&amp;gt;fti_ostid, id + i);
                rc = ostid_to_fid(&amp;amp;info-&amp;gt;fti_fid, &amp;amp;info-&amp;gt;fti_ostid, 0);
                if (rc) {
                        if (i == 0)
                                GOTO(out, rc = PTR_ERR(fo));

                        nr = i;
                        break;
                }

                fo = ofd_object_find(env, ofd, &amp;amp;info-&amp;gt;fti_fid);
                if (IS_ERR(fo)) {
                        if (i == 0)
                                GOTO(out, rc = PTR_ERR(fo));

                        nr = i;
                        break;
                }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The first GOTO statement should be GOTO(out, rc). This was found using a script from the coccinelle examples directory.&lt;/p&gt;</description>
                <environment></environment>
        <key id="21281">LU-4068</key>
            <summary>bad error return from ofd_precreate_objects()</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>coccinelle</label>
                            <label>ofd</label>
                    </labels>
                <created>Sat, 5 Oct 2013 00:59:43 +0000</created>
                <updated>Wed, 9 Oct 2013 14:48:55 +0000</updated>
                            <resolved>Wed, 9 Oct 2013 14:48:55 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="68429" author="jhammond" created="Sat, 5 Oct 2013 01:31:29 +0000"  >&lt;p&gt;Here is a similar one in osd_index_ea_insert()&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;...
        struct inode            *child_inode = NULL;
...
        } else {
                /* Insert local entry */
                child = osd_object_find(env, dt, fid);
                if (IS_ERR(child)) {
                        CERROR(&quot;%s: Can not find object &quot;DFID&quot;%u:%u: rc = %d\n&quot;,
                               osd_name(osd), PFID(fid),
                               id-&amp;gt;oii_ino, id-&amp;gt;oii_gen,
                               (int)PTR_ERR(child_inode));
                        RETURN(PTR_ERR(child_inode));
                }
                child_inode = igrab(child-&amp;gt;oo_inode);
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="68661" author="jhammond" created="Wed, 9 Oct 2013 14:48:55 +0000"  >&lt;p&gt;Handling in the patch for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4067&quot; title=&quot;bad error return from osd_object_create()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4067&quot;&gt;&lt;del&gt;LU-4067&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzw4vz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10902</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>