staging: sm7xxfb: copy device name before we pass to the smtc_alloc_fb_info
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 26 Aug 2012 06:27:16 +0000 (11:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 21:23:33 +0000 (14:23 -0700)
commitd328ddd20e076e940f4931cd032aedf1ae2ced73
treefd6ea65194692d8b8141629f63d5c720b61f4f87
parent147cd165757fc67fdf8ae58b015f39c8134970fb
staging: sm7xxfb: copy device name before we pass to the smtc_alloc_fb_info

the name is not initialised and passed to the function smtc_alloc_fb_info
and copies the name into a member of fb structure.

copy the name before calling alloc_fb_info.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Acked-by: Javier Muñoz <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xxfb.c