Patch "platform/x86: mlx-platform: free first dev on error" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
platform/x86: mlx-platform: free first dev on error
to the 4.9-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:
platform-x86-mlx-platform-free-first-dev-on-error.patch
and it can be found in the queue-4.9 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
63d762b88cb5510f2bfdb5112ced18cde867ae61Mon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Sat, 7 Jan 2017 09:33:34 +0300
Subject: platform/x86: mlx-platform: free first dev on error
From: Dan Carpenter <[email protected]>
commit 63d762b88cb5510f2bfdb5112ced18cde867ae61 upstream.
There is an off-by-one error so we don't unregister priv->pdev_mux[0]. Also it's slightly simpler as a while loop instead of a for loop.
--- arch/x86/platform/mellanox/mlx-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/platform/mellanox/mlx-platform.c +1 -1
@@ -233,7 +233,7 @@ static int __init mlxplat_init(void)return 0 ; fail_platform_mux_register: -for (i--; i >0 ; i--) +while (--i >=0 )platform_device_unregister (priv->pdev_mux[i]);platform_device_unregister (priv->pdev_i2c); fail_alloc:
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/fbdev-color-map-copying-bounds-checking.patch queue-4.9/drm-vc4-fix-a-bounds-check.patch queue-4.9/platform-x86-mlx-platform-free-first-dev-on-error.patch