diff options
| author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-09-26 11:19:08 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-08 17:26:46 +0100 |
| commit | 2de328398b50380295448181f4a06bf879ec748e (patch) | |
| tree | 34b6cd7f23aed85c94b7575932ffa309c63e3123 | |
| parent | 962a3d3d731c18d94d517df4b92f274a64dbf469 (diff) | |
| download | linux-2de328398b50380295448181f4a06bf879ec748e.tar.gz linux-2de328398b50380295448181f4a06bf879ec748e.tar.bz2 linux-2de328398b50380295448181f4a06bf879ec748e.zip | |
fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()
[ Upstream commit 32e9212256b88f35466642f9c939bb40cfb2c2de ]
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -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 73a56d7ac84b..b02778cbb1d3 100644 --- a/fs/ntfs3/frecord.c +++ b/fs/ntfs3/frecord.c @@ -2100,7 +2100,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); |
