+++ This bug was initially created as a clone of Bug #166364 +++ Escalated to Bugzilla from IssueTracker
Created attachment 118156 [details] Proposed patch
The problem is the ordering of creating the entry in the directory and allocating the file struct to reference the file. The file struct was getting allocated second, but should be allocated before the directory entry is created. Thus, if the allocation fails, then the error can be returned without creating the directory entry.
Created attachment 119024 [details] Proposed patch
Created attachment 121242 [details] Proposed patch The previous proposed patch was incomplete.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2006-0132.html