[PATCH] scx200_acb: Fix resource name use after free
authorJean Delvare <khali@linux-fr.org>
Wed, 26 Apr 2006 21:00:16 +0000 (23:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 May 2006 20:04:21 +0000 (13:04 -0700)
commitb33d0798e6cfae1fcee75afc808fe5690a48a814
treefee80034c1633f195c1f32493063208abde7d5ca
parent6f9c2963888e60e46a9e0bd09a25740abce29262
[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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/scx200_acb.c