]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging:ccg: fix a class_destroy when kmalloc fails after the class_create
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 13 Sep 2012 17:08:48 +0000 (13:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 03:20:28 +0000 (20:20 -0700)
commit99d4b1a6cbfa8449dad5fb58e8c8044301e2667a
tree830e30678508e9d2199e69c3473797280220fa70
parent43bf2f4bfeb57601a9ccba382e0f378763df4b26
staging:ccg: fix a class_destroy when kmalloc fails after the class_create

we do class_create and call kmalloc to allocate dev pointer,
and if kmalloc fail we forget destoying class

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccg/ccg.c