[lvc-project] [PATCH] NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info
Benjamin Coddington
bcodding at redhat.com
Thu Jul 20 19:53:26 MSK 2023
On 20 Jul 2023, at 11:37, Fedor Pchelkin wrote:
> 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 at vger.kernel.org
> Signed-off-by: Fedor Pchelkin <pchelkin at ispras.ru>
This looks correct to me.
Reviewed-by: Benjamin Coddington <bcodding at redhat.com>
Ben
More information about the lvc-project
mailing list