Message ID | 20240723122522.2724-1-minipli@grsecurity.net (mailing list archive) |
---|---|
State | Accepted |
Commit | 12c20c65d0460cf34f9a665d8f0c0d77d45a3829 |
Headers | show |
Series | eventfs: Don't return NULL in eventfs_create_dir() | expand |
diff --git a/fs/tracefs/event_inode.c b/fs/tracefs/event_inode.c index 5d88c184f0fc..a9c28a1d5dc8 100644 --- a/fs/tracefs/event_inode.c +++ b/fs/tracefs/event_inode.c @@ -736,7 +736,7 @@ struct eventfs_inode *eventfs_create_dir(const char *name, struct eventfs_inode /* Was the parent freed? */ if (list_empty(&ei->list)) { cleanup_ei(ei); - ei = NULL; + ei = ERR_PTR(-EBUSY); } return ei; }