diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-11-07 10:38:53 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-11-13 08:18:50 -0600 |
| commit | 9084e1b1b94c31d76ae7efd12f8828f3b4ed2255 (patch) | |
| tree | 5843b1e1160c03dba717037008d820b4af8b4c6e /include | |
| parent | bbc3d12516ec759379d71819ff49b8574f233aec (diff) | |
fs: ext4: correct error handling
After calling strdup() check the returned pointer.
Avoid a memory leak if the directory is not found.
Reported-by: Michael Nazzareno Trimarchi <[email protected]>
Fixes: 22fdac381f98 ("fs: ext4: implement opendir, readdir, closedir")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
