Fedor Pchelkin fd9a8ad2cf 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-19 12:27:58 +02:00
..
2023-09-19 12:27:58 +02:00
2022-10-13 09:58:42 -07:00
2022-05-09 23:12:33 -04:00
2023-08-30 16:11:10 +02:00
2023-07-19 16:21:43 +02:00
2022-10-13 09:58:42 -07:00
2022-05-09 16:36:48 -04:00
2022-09-12 17:53:46 -04:00