mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
staging: android: ion_test: fix check of platform_device_register_simple() error code
commitccbc2a9e78upstream. On error platform_device_register_simple() returns ERR_PTR() value, check for NULL always fails. The change corrects the check itself and propagates the returned error upwards. Fixes:81fb0b9013("staging: android: ion_test: unregister the platform device") Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a5e8deb7f0
commit
263b0af7cc
1 changed files with 2 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue