Searched hist:"245685495 bff35062a394f5cdbd32b237dc596a5" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/powerpc/platforms/pasemi/ |
H A D | misc.c | diff 245685495bff35062a394f5cdbd32b237dc596a5 Sat Aug 27 08:39:46 CEST 2022 Russell Currey <ruscur@russell.cc> powerpc/pasemi: Use strscpy instead of strlcpy
find_i2c_driver() contained the last usage of strlcpy() in arch/powerpc. The return value was used to check if strlen(src) >= n, for which strscpy() returns -E2BIG.
Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220827063946.9073-1-ruscur@russell.cc
|