From 474a265d43d065b6790ebcb1b59f5dc1ed4a65ef Mon Sep 17 00:00:00 2001 From: Meenakshi Aggarwal Date: Mon, 24 Mar 2014 16:34:15 +0530 Subject: fsl_qbman: remove unnecessary call to put_affine_portal() In bman_create_affine_slave() function : - we used put_affine_portal() which should be called along with get_affine_portal() or get_raw_affine_portal(). - unnecessary call to put_affine_portal() leaves the function in invalid state and resulted in kernel panic. Signed-off-by: Meenakshi Aggarwal Signed-off-by: Priyanka Jain Change-Id: I52a98c18b20d6f83f86ce462005f43e26fa1bdd9 Reviewed-on: http://git.am.freescale.net:8181/10283 Tested-by: Review Code-CDREVIEW Reviewed-by: Priyanka Jain Reviewed-by: Jose Rivera diff --git a/drivers/staging/fsl_qbman/bman_high.c b/drivers/staging/fsl_qbman/bman_high.c index 16e9534..16445a7 100644 --- a/drivers/staging/fsl_qbman/bman_high.c +++ b/drivers/staging/fsl_qbman/bman_high.c @@ -326,7 +326,6 @@ struct bman_portal *bman_create_affine_slave(struct bman_portal *redirect, BUG_ON(!redirect->config->public_cfg.is_shared); p->irq_sources = 0; p->sharing_redirect = redirect; - put_affine_portal(); return p; #else BUG(); -- cgit v0.10.2