diff options
author | Joe Perches <joe@perches.com> | 2018-08-22 07:57:50 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-22 20:52:48 +0300 |
commit | 4cab63cea374c684eb0db352b40a09e3f7c45057 (patch) | |
tree | a6b088095c1b9388cd2142b9a62691f4d533737b /sound/i2c/i2c.c | |
parent | 3b6e8ac9e740b71b07df4a1e89ba5841686d8e9f (diff) | |
download | linux-4cab63cea374c684eb0db352b40a09e3f7c45057.tar.xz |
checkpatch: fix krealloc reuse test
The current krealloc test does not function correctly when the temporary
pointer return name contains the original pointer name.
Fix that by maximally matching the return pointer name and the original
pointer name and doing a separate comparison of the both names.
Link: http://lkml.kernel.org/r/e617ecb8c019a9c4c56540a1bec16c8aed43a4e4.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Manish Narani <manish.narani@xilinx.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/i2c/i2c.c')
0 files changed, 0 insertions, 0 deletions