aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorJakob Koschel <[email protected]>2022-02-28 14:24:33 +0000
committerMichael Ellerman <[email protected]>2022-03-07 13:04:56 +0000
commitfa1321b11bd01752f5be2415e74a0e1a7c378262 (patch)
tree5f1cad77350cd9564f7e64f2f539ce868b53b90f /arch/powerpc/lib/code-patching.c
parentpowerpc/pseries/vas: Add VAS migration handler (diff)
downloadkernel-fa1321b11bd01752f5be2415e74a0e1a7c378262.tar.gz
kernel-fa1321b11bd01752f5be2415e74a0e1a7c378262.zip
powerpc/sysdev: fix incorrect use to determine if list is empty
'gtm' will *always* be set by list_for_each_entry(). It is incorrect to assume that the iterator value will be NULL if the list is empty. Instead of checking the pointer it should be checked if the list is empty. Fixes: 83ff9dcf375c ("powerpc/sysdev: implement FSL GTM support") Signed-off-by: Jakob Koschel <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions