staging: ion: Store a copy of the client name on client creation
authorMitchel Humpherys <mitchelh@codeaurora.org>
Mon, 17 Feb 2014 21:58:36 +0000 (13:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:05:08 +0000 (11:05 -0800)
commitae5cbf4a5a117549717d1da12ac1bd84f10dac59
tree6b432165f910630d6fd39034c74e59da83094c50
parent483ed03f5eee1d1207e8648e923d615ce0599814
staging: ion: Store a copy of the client name on client creation

Currently, we copy the pointer passed in to ion_client_create without
making a copy of the string itself. This approach is problematic since
it relies on the client keeping the name string in working order.

Cc: Colin Cross <ccross@android.com>
Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
[jstultz: Minor commit subject tweaks]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c