diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-10 12:31:45 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-20 14:35:38 +0200 |
commit | 7b58c2f2d1a8dd370fc57a5c6457e9fa64cbdf80 (patch) | |
tree | 54a4e692439ec9c2fc236c069efea06b805fb8d7 /fs/cramfs | |
parent | 07a7a6ce22ea0bbbb41252c018d83ae68f76df34 (diff) | |
download | barebox-7b58c2f2d1a8dd370fc57a5c6457e9fa64cbdf80.tar.gz barebox-7b58c2f2d1a8dd370fc57a5c6457e9fa64cbdf80.tar.xz |
fs: Use iget_locked() rather than squashfs specific function
Use iget_locked() to let the core allocate the inode. This properly
initializes all fields in the new inode, especially it adds the new
inode to the list of all inodes for the filesystem. This prevents a NULL
pointer derefence when iput() removes the inode from that list.
This fixes squashfs support which is broken since 43902e5763 ("fs: free
inodes we no longer need")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/cramfs')
0 files changed, 0 insertions, 0 deletions