summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorHarshvardhan Jha <harshvardhan.jha@oracle.com>2021-07-27 03:07:10 +0300
committerDominique Martinet <asmadeus@codewreck.org>2021-07-27 17:01:16 +0300
commit732b33d0dbf17e9483f0b50385bf606f724f50a2 (patch)
treecdccce2108b4572eea0f0d37cc278adff173a009 /Documentation
parentf997ea3b7afc108eb9761f321b57de2d089c7c48 (diff)
downloadlinux-732b33d0dbf17e9483f0b50385bf606f724f50a2.tar.xz
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: Harshvardhan Jha <harshvardhan.jha@oracle.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Tested-by: Stefano Stabellini <sstabellini@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions