staging: gasket: Remove stale pointers on error allocating attr array
authorTodd Poynor <toddpoynor@google.com>
Tue, 17 Jul 2018 20:56:48 +0000 (13:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2018 09:39:47 +0000 (11:39 +0200)
commit03c25b3ad0405063f8e82871cfaef627dff4d26b
tree4c2773108c5bd3ef7b6ff98102d1b5b9ff38d632
parentcf2865a0c70c645c50d2665ca66228872e225ed0
staging: gasket: Remove stale pointers on error allocating attr array

If gasket_sysfs_create_mapping() hits errors allocating the attribute
array, remove stale pointers to device info from the mapping object.

Signed-off-by: Zhongze Hu <frankhu@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_sysfs.c