]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] scx200_acb: Fix resource name use after free
authorJean Delvare <khali@linux-fr.org>
Sat, 13 May 2006 09:17:37 +0000 (11:17 +0200)
committerChris Wright <chrisw@sous-sol.org>
Sat, 20 May 2006 22:00:30 +0000 (15:00 -0700)
commit9a4a3539b356a8f4da8c6ace95bc4135314fed7e
tree52b0164fa9db8cdd965a570969f6b69be1fc0766
parenta9cacd682ed7c031fa05b1d1367a3b3221813932
[PATCH] scx200_acb: Fix resource name use after free

We can't pass a string on the stack to request_region. As soon as we
leave the function that stack is gone and the string is lost. Let's
use the same string we identify the i2c_adapter with instead, it's
more simple, more consistent, and just works.

This is the second half of fix to bug #6445.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/scx200_acb.c