diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-09-26 11:19:08 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-09-28 15:04:03 +0300 |
commit | 32e9212256b88f35466642f9c939bb40cfb2c2de (patch) | |
tree | 54b9669027e0dfb1950fb8a02a53f309af966336 /fs/ntfs3 | |
parent | e52dce610a2d53bf2b5e94a8843c71cb73a91ea5 (diff) | |
download | linux-32e9212256b88f35466642f9c939bb40cfb2c2de.tar.xz |
fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/frecord.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c index d49fbb22bd5e..dad976a68985 100644 --- a/fs/ntfs3/frecord.c +++ b/fs/ntfs3/frecord.c @@ -2148,7 +2148,7 @@ out1: for (i = 0; i < pages_per_frame; i++) { pg = pages[i]; - if (i == idx) + if (i == idx || !pg) continue; unlock_page(pg); put_page(pg); |