Fedor Pchelkin 1935b79c16 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:47:01 +02:00
..
2019-08-06 19:05:23 +02:00
2023-08-11 11:33:57 +02:00
2023-08-30 16:35:09 +02:00
2023-02-22 12:46:05 +01:00
2020-03-11 18:02:43 +01:00
2023-01-18 09:26:35 +01:00
2021-12-14 10:16:55 +01:00