commit | 99d4b1a6cbfa8449dad5fb58e8c8044301e2667a | [log] [tgz] |
---|---|---|
author | Devendra Naga <devendra.aaru@gmail.com> | Thu Sep 13 13:08:48 2012 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Sep 13 20:20:28 2012 -0700 |
tree | 830e30678508e9d2199e69c3473797280220fa70 | |
parent | 43bf2f4bfeb57601a9ccba382e0f378763df4b26 [diff] |
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>