mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
The block2mtd driver (drivers/mtd/devices/block2mtd.c) will kfree an on-stack pointer when handling an invalid argument line (e.g. block2mtd=/dev/loop0,xxx). The kfree was added some time ago when "name" was dynamically allocated. Signed-off-by: Ingo van Lil <[email protected]> Acked-by: Joern Engel <[email protected]> Cc: David Woodhouse <[email protected]> Cc: <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>