]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c5e4d8946f999eccf3c59c7a399a65cdd11da25
tree4c2773108c5bd3ef7b6ff98102d1b5b9ff38d632
parent1df1f06039729b16be2f6e5bc644b6a0ef331e0b
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