Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752924AbbESFAp (ORCPT ); Tue, 19 May 2015 01:00:45 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:41196 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751312AbbESFAl (ORCPT ); Tue, 19 May 2015 01:00:41 -0400 X-AuditID: cbfee690-f796f6d000005054-92-555ac375dd5c Date: Tue, 19 May 2015 05:00:27 +0000 (GMT) From: Maninder Singh Subject: [EDT][PATCH 1/1] dma/pl330.c : Initialize pl330 pointer after NULL check of pch pointer To: dan.j.williams@intel.com, vinod.koul@intel.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Reply-to: maninder1.s@samsung.com MIME-version: 1.0 X-MTR: 20150519044829480@maninder1.s Msgkey: 20150519044829480@maninder1.s X-EPLocale: en_US.windows-1252 X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20150519044829480@maninder1.s X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general Content-type: text/plain; charset=windows-1252 MIME-version: 1.0 Message-id: <1162474717.380131432011625902.JavaMail.weblogic@ep2mlwas07b> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKIsWRmVeSWpSXmKPExsWyRsSkSrf0cFSowaQvghaXd81hc2D0+LxJ LoAxissmJTUnsyy1SN8ugSvjb8NJ5oIbnBWzJm5ibmDcwtnFyMkhJKAmsWjvYzYQW0LAROLd jufsELaYxIV764HiXEA1Sxklbq2fyA5TtGftBGaI5jmMEoceu4LYLAKqEofaDrOA2GwC+hJn 964DqxEWSJCY92ENC8ggEYFWRok5J18xQTQrSqy/8YQRxOYVEJQ4OfMJC8QCFYmdHZeZIeKq Ehdfv2OEiMtJLJl6mQnC5pWY0f6UBSY+7esaZghbWuL8rA2MMB8s/v4YKs4vcez2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AA2Z4Sp3q4JzDKzEKSmYWkexaSbmQ1CxhZVjGKphYk FxQnpVeY6BUn5haX5qXrJefnbmIEp5tnS3YwNlywPsQowMGoxMMbUR8VKsSaWFZcmXuIUYKD WUmEN30/UIg3JbGyKrUoP76oNCe1+BCjKTCmJjJLiSbnA1NhXkm8obGJuamxqYWBobm5mZI4 7/9zuSFCAumJJanZqakFqUUwfUwcnFINjA98HJ6Wrt5dUP6v28qtUWdXDLdt66ap8tLMDhcb k3a0Lz89R4Hh0tzDBkGplr9ybTZOvtE17/x2n8cH//7KuL6OvZWFKYvxqVxy7JvyIkPmGXfS lLKO9bkInnNI/X17u9Cvqh/Fl1XDH15kWeJSYMqwZvHr/q6Er/Oa45gK5yyL8Dv/gemfoBJL cUaioRZzUXEiAAUMZItNAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t4J50odY030551 Content-Length: 1062 Lines: 36 EP-AA9D1F29B02341529D96C06444D8471D Hi, Subject: [PATCH 1/1] dma/pl330.c : Initialize pl330 pointer after NULL check of pch pointer Signed-off-by: Maninder Singh Reviewed-By: Vaneet Narang --- drivers/dma/pl330.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index a7d9d30..7e27144 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2581,12 +2581,14 @@ pl330_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dst, { struct dma_pl330_desc *desc; struct dma_pl330_chan *pch = to_pchan(chan); - struct pl330_dmac *pl330 = pch->dmac; + struct pl330_dmac *pl330; int burst; if (unlikely(!pch || !len)) return NULL; + pl330 = pch->dmac; + desc = __pl330_prep_dma_memcpy(pch, dst, src, len); if (!desc) return NULL; -- 1.7.1 Thanks Maninder Singh????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?