ion: store a copy of the client name on client creation
authorMitchel Humpherys <mitchelh@codeaurora.org>
Thu, 19 Dec 2013 06:10:07 +0000 (22:10 -0800)
committerColin Cross <ccross@android.com>
Fri, 20 Dec 2013 03:25:40 +0000 (19:25 -0800)
commit0d8b5323f86e992177e9995a7e5e0ee163575ee9
tree85ece0118ea6e0895f6499c1e42fd2d69191d41b
parentc95cd575f4ae04dbf59745f6f6f9e24f86571558
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.

Change-Id: I62d79c7539b2c857a5a625339d49c9c892e8622d
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
drivers/staging/android/ion/ion.c