android_kernel_motorola_sm6225/fs/nfs
Fedor Pchelkin 9c9362a2af NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info
commit 96562c45af5c31b89a197af28f79bfa838fb8391 upstream.

It is an almost improbable error case but when page allocating loop in
nfs4_get_device_info() fails then we should only free the already
allocated pages, as __free_page() can't deal with NULL arguments.

Found by Linux Verification Center (linuxtesting.org).

Cc: stable@vger.kernel.org
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-23 10:48:12 +02:00
..
blocklayout nfs/blocklayout: Use the passed in gfp flags 2023-09-23 10:48:06 +02:00
filelayout pNFS/filelayout: Fix coalescing test for single DS 2023-01-24 07:11:49 +01:00
flexfilelayout pnfs/flexfiles: Fix misplaced barrier in nfs4_ff_layout_prepare_ds 2021-11-26 11:36:14 +01:00
cache_lib.c
cache_lib.h
callback.c
callback.h NFSv4.1: Fix uninitialised variable in devicenotify 2022-02-16 12:51:44 +01:00
callback_proc.c NFSv4/pNFS: Fix another issue with a list iterator pointing to the head 2022-04-15 14:14:53 +02:00
callback_xdr.c NFS: remove unneeded check in decode_devicenotify_args() 2022-04-15 14:14:52 +02:00
client.c NFS: Fix initialisation of nfs_client cl_flags field 2022-02-16 12:51:43 +01:00
delegation.c
delegation.h
dir.c NFS: LOOKUP_DIRECTORY is also ok with symlinks 2022-02-23 11:58:40 +01:00
direct.c NFS: swap-out must always use STABLE writes. 2022-04-15 14:15:03 +02:00
dns_resolve.c
dns_resolve.h
export.c
file.c NFS: swap IO handling is slightly different for O_DIRECT IO 2022-04-15 14:15:03 +02:00
fscache-index.c
fscache.c
fscache.h
getroot.c
inode.c NFS: Do not report writeback errors in nfs_getattr() 2022-02-23 11:58:40 +01:00
internal.h NFS: nfs_igrab_and_active must first reference the superblock 2021-01-19 18:22:37 +01:00
io.c
iostat.h
Kconfig nfs: fix PNFS_FLEXFILE_LAYOUT Kconfig default 2021-03-30 14:36:58 +02:00
Makefile
mount_clnt.c
namespace.c
netns.h
nfs.h
nfs2super.c
nfs2xdr.c
nfs3_fs.h
nfs3acl.c
nfs3client.c
nfs3proc.c nfs: fix acl memory leak of posix_acl_create() 2021-07-20 16:16:13 +02:00
nfs3super.c
nfs3xdr.c NFS: Correct size calculation for create reply length 2021-03-30 14:36:58 +02:00
nfs4_fs.h NFSv4: Convert struct nfs4_state to use refcount_t 2023-04-20 12:04:38 +02:00
nfs4client.c nfs4: Fix kmemleak when allocate slot failed 2022-11-10 17:46:51 +01:00
nfs4file.c NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config 2021-06-03 08:38:08 +02:00
nfs4getroot.c
nfs4idmap.c NFSv4: Fix races in the legacy idmapper upcall 2022-08-25 11:15:36 +02:00
nfs4idmap.h
nfs4namespace.c NFSv4 expose nfs_parse_server_name function 2022-02-16 12:51:44 +01:00
nfs4proc.c NFSv4: Fix hangs when recovering open state after a server reboot 2023-04-20 12:04:38 +02:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c NFSv4.1: Always send a RECLAIM_COMPLETE after establishing lease 2023-05-17 11:13:19 +02:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h
nfs4xdr.c NFSv4.2: Fix a memory stomp in decode_attr_security_label 2023-01-18 11:30:13 +01:00
nfs42.h
nfs42proc.c NFSv42: Fix pagecache invalidation after COPY/CLONE 2021-12-08 08:50:11 +01:00
nfs42xdr.c NFSv42: Don't fail clone() unless the OP_CLONE operation failed 2021-12-01 09:27:42 +01:00
nfsroot.c
nfstrace.c
nfstrace.h
pagelist.c NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce() 2021-06-03 08:38:08 +02:00
pnfs.c pNFS: Don't keep retrying if the server replied NFS4ERR_LAYOUTUNAVAILABLE 2022-06-25 11:49:15 +02:00
pnfs.h NFSv4/pNFS: Fix another issue with a list iterator pointing to the head 2022-04-15 14:14:53 +02:00
pnfs_dev.c NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info 2023-09-23 10:48:12 +02:00
pnfs_nfs.c pnfs/flexfiles: Fix misplaced barrier in nfs4_ff_layout_prepare_ds 2021-11-26 11:36:14 +01:00
proc.c
read.c
super.c
symlink.c
sysctl.c
unlink.c
write.c NFS: Fix deadlocks in nfs_scan_commit_list() 2021-11-26 11:36:14 +01:00