char: aml-gpiomem: Use allocated pointer for class registration
The class name for class_create() requires memory pointer not freed
until the class is destroy, but local array is used, so it causes
memory bad access. Use allocated pointer for class registration.
This fixes below kasan warning:
BUG: KASAN: out-of-bounds in strlcpy+0x48/0x88
Read of size 11 at addr
ffffffc00029f9c0 by task udevadm/2912
...
[<
ffffff900941ca9c>] check_memory_region+0x12c/0x1a0
[<
ffffff900941d0d4>] memcpy+0x34/0x68
[<
ffffff9009af8968>] strlcpy+0x48/0x88
[<
ffffff9009aeb74c>] kobject_uevent_env+0x55c/0x948
[<
ffffff9009aebb48>] kobject_uevent+0x10/0x18
[<
ffffff9009de5ca0>] uevent_store+0xf0/0xf8
...
Change-Id: I0e265a8b1b52e732de262a0058bd821419ca4fe8
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>