Patch "staging: android: ion_test: fix check of platform_device_register_simple() error code" has been added to the 4.5-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
staging: android: ion_test: fix check of platform_device_register_simple() error code
to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
staging-android-ion_test-fix-check-of-platform_device_register_simple-error-code.patch
and it can be found in the queue-4.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
ccbc2a9e7878ff09bcaed4893c2a2d3adbb797e2Mon Sep 17 00:00:00 2001
From: Vladimir Zapolskiy <[email protected]>
Date: Wed, 23 Mar 2016 00:38:43 +0200
Subject: staging: android: ion_test: fix check of platform_device_register_simple() error code
From: Vladimir Zapolskiy <[email protected]>
commit ccbc2a9e7878ff09bcaed4893c2a2d3adbb797e2 upstream.
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.
--- drivers/staging/android/ion/ion_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/android/ion/ion_test.c +2 -2
@@ -285,8 +285,8 @@ static int __init ion_test_init(void) { ion_test_pdev =platform_device_register_simple ("ion-test" ,-1 ,NULL ,0 ); -if (!ion_test_pdev) -return -ENODEV ; +if (IS_ERR (ion_test_pdev)) +return PTR_ERR (ion_test_pdev);return platform_driver_probe (&ion_test_platform_driver, ion_test_probe); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.5/crypto-atmel-fix-checks-of-error-code-returned-by-devm_ioremap_resource.patch queue-4.5/crypto-ux500-fix-checks-of-error-code-returned-by-devm_ioremap_resource.patch queue-4.5/staging-android-ion_test-fix-check-of-platform_device_register_simple-error-code.patch