Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpatch: add check for reuse of krealloc arg
On Thu, 2013-03-14 at 13:30 +0000, David Woodhouse wrote: > If krealloc() returns NULL, it *doesn't* free the original. So any code > of the form 'foo = krealloc(foo, …);' is almost certainly a bug. So add a check for it to checkpatch. Signed-off-by: Joe Perches <[email protected]> Tested-by: Guenter Roeck <[email protected]> Acked-by: Guenter Roeck <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Andy Whitcroft <[email protected]> Cc: Jean Delvare <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information