From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751855AbdHOOij (ORCPT ); Tue, 15 Aug 2017 10:38:39 -0400 Received: from mga02.intel.com ([134.134.136.20]:26076 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224AbdHOOii (ORCPT ); Tue, 15 Aug 2017 10:38:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,377,1498546800"; d="scan'208";a="1162818032" Date: Tue, 15 Aug 2017 17:38:34 +0300 From: Mika Westerberg To: Colin King Cc: Andreas Noever , Michael Jamet , Yehezkel Bernat , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] thunderbolt: fix incorrect value assigned to req->response_type Message-ID: <20170815143834.GL2369@lahna.fi.intel.com> References: <20170815143133.26500-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170815143133.26500-1-colin.king@canonical.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 15, 2017 at 03:31:33PM +0100, Colin King wrote: > From: Colin Ian King > > req->response_type is being assigned the sizeof TB_CFG_PKG_RESET > and should actually be assigned TB_CFG_PKG_RESET. Fix this. > > Signed-off-by: Colin Ian King IIRC I already acked this some time ago ;-) Acked-by: Mika Westerberg BTW, you should CC Greg as he has been gathering Thunderbolt related patches. I added him now. > --- > drivers/thunderbolt/ctl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thunderbolt/ctl.c b/drivers/thunderbolt/ctl.c > index 69c0232a22f8..fb40dd0588b9 100644 > --- a/drivers/thunderbolt/ctl.c > +++ b/drivers/thunderbolt/ctl.c > @@ -804,7 +804,7 @@ struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route, > req->request_type = TB_CFG_PKG_RESET; > req->response = &reply; > req->response_size = sizeof(reply); > - req->response_type = sizeof(TB_CFG_PKG_RESET); > + req->response_type = TB_CFG_PKG_RESET; > > res = tb_cfg_request_sync(ctl, req, timeout_msec); > > -- > 2.11.0