diff options
author | Dan Carpenter <[email protected]> | 2017-01-07 09:33:34 +0300 |
---|---|---|
committer | Andy Shevchenko <[email protected]> | 2017-01-21 01:43:42 +0200 |
commit | 63d762b88cb5510f2bfdb5112ced18cde867ae61 (patch) | |
tree | 59bd1832e251b5e0edc61b1b6fb4f4d448b57554 /lib/test-string_helpers.c | |
parent | 49def1853334396f948dcb4cedb9347abb318df5 (diff) |
platform/x86: mlx-platform: free first dev on error
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.
Fixes: 58cbbee2391c ("x86/platform/mellanox: Introduce support for Mellanox systems platform")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Vadim Pasternak <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions