pcmcia: use kstrdup() in pcmcia_device_query()
authorGeliang Tang <geliangtang@163.com>
Thu, 1 Oct 2015 16:37:57 +0000 (00:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2015 03:47:09 +0000 (04:47 +0100)
commit7c22e645cd742b82ec232e4f2328fc53d247ccea
treebda53e1c647782de44579f2a9d34a127962dc91b
parentdf6be790623f11c0db8152e724f4951cd944ffe2
pcmcia: use kstrdup() in pcmcia_device_query()

Use kstrdup instead of kmalloc and strncpy.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pcmcia/ds.c