Skip to content
Commit 732b33d0 authored by Harshvardhan Jha's avatar Harshvardhan Jha Committed by Dominique Martinet
Browse files

9p/xen: Fix end of loop tests for list_for_each_entry

This patch addresses the following problems:
 - priv can never be NULL, so this part of the check is useless
 - if the loop ran through the whole list, priv->client is invalid and
it is more appropriate and sufficient to check for the end of
list_for_each_entry loop condition.

Link: http://lkml.kernel.org/r/20210727000709.225032-1-harshvardhan.jha@oracle.com


Signed-off-by: default avatarHarshvardhan Jha <harshvardhan.jha@oracle.com>
Reviewed-by: default avatarStefano Stabellini <sstabellini@kernel.org>
Tested-by: default avatarStefano Stabellini <sstabellini@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
parent f997ea3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment