]> git.karo-electronics.de Git - linux-beck.git/commitdiff
at86rf230: fix context pointer handling
authorAlexander Aring <alex.aring@gmail.com>
Mon, 15 Dec 2014 09:25:55 +0000 (10:25 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 18 Dec 2014 23:19:25 +0000 (00:19 +0100)
This patch changes the context pointer to the parameter given one inside
function at86rf230_async_state_change_start. This could occur problem if
context isn't pointed to lp->state.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Stefan Schmidt <s.schmidt@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c

index 8fee326a6b9618019271b447f890f10d60cc6223..6d1ef83a3a5b120f210f774819a8194bb4ecc339 100644 (file)
@@ -654,7 +654,7 @@ at86rf230_async_state_change_start(void *context)
                if (ctx->irq_enable)
                        enable_irq(lp->spi->irq);
 
-               at86rf230_async_error(lp, &lp->state, rc);
+               at86rf230_async_error(lp, ctx, rc);
        }
 }