Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3941285imm; Mon, 8 Oct 2018 12:03:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV625ENUJPz3SY5EZxcPaCJln7SWE9+G4zhf0NMa2i2iiKqKDBjKCbgItJshmPQoMGPkAmzJL X-Received: by 2002:a17:902:e28a:: with SMTP id cf10-v6mr25151328plb.4.1539025383786; Mon, 08 Oct 2018 12:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539025383; cv=none; d=google.com; s=arc-20160816; b=FgBO6lWSOtmu/2nxyZsJaJaez+yrgH2eMsL6AwnG3eSYTxbqAkTsPK8ycGdHrnyz+6 f7xt9F40+Y8S3T8+Ivlg+W7lIzfkrWgQdRqv9TbHLY9dMt1h4tu9v/YfenlQyjaFYwD5 3h+eMfuxAaGC1IAHEyTxAM5t4giezCh2KeZfFWDpZJD6KSHrS5+xahmqJrLcy97CUCQm Gbk85iI6rc1PKEfXoRTKrCipHxnAbQX0Ka+LtsFt5YFpz4k5Ckd7jbLaHrFyIclHThZJ JGKMKhbvVvNvt/75TR+flglmEwtSjPJnV+UdCtYLm77hm2JZINEGTZiH5e91NUMoNAVK A8WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lrlWQbhpY7R1N1raRiKnsQWHHhzenjIs0zfCx8XtioM=; b=nlKt7V0p3fJ+XToR8N6JlzHtQE3ybHR5AUN31XN6+bPkJXE1KU32tQV1IiICu7PM4k cXvkzKgedGNfTLakvt7V4XMdwP5BNFFVlMs3/Ck3BbDgj6ug3zdR+7f3Qpu12bKJfliB wF3QK/AeTpwmq5gK2H54pl6pt5JhWjQxBDkPLKEGGZdYT8VRtUo9+rhKkipeMChVyubD P+TeEDkLigIH6UKKK/zPQdGBG409CF1jiR1MpbBWTFSd+2F7lQmsqGVJ5Aky4sqKjn06 dRamXLVhovoI3N7KwsFkRKXDWVsol0znyLloNLcxBp++6okknC4JP2xLfpc7o3ojm9Fo zlNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x8kkqCuY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16-v6si16699535pgu.525.2018.10.08.12.02.48; Mon, 08 Oct 2018 12:03:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x8kkqCuY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731340AbeJICAQ (ORCPT + 99 others); Mon, 8 Oct 2018 22:00:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:48676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbeJICAN (ORCPT ); Mon, 8 Oct 2018 22:00:13 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 10F752064A; Mon, 8 Oct 2018 18:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024427; bh=d5Lmo3Hg+M0orTrO9Go45NElihyJlGg7UMO3xRIK5KA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x8kkqCuYclWKxxFBZvGblTEUl3ve2qV2ADcl7gH+t2eKfGdG51SgTikkr5KAVmrTl lq5aArz49oIL4P4PmA2sL5ij8kTUJZnn3N3BRYlEGrd9K1i7gcRFcTKFNDrCUWMeod sRBVFhrUvdWgBy0CBXSU8bTSJ4rcyKVdjbWvmnIU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.18 011/168] scsi: aacraid: fix a signedness bug Date: Mon, 8 Oct 2018 20:29:51 +0200 Message-Id: <20181008175620.472438074@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter [ Upstream commit b9eb3b14f1dbf16bf27b6c1ffe6b8c00ec945c9b ] The problem is that ->reset_state is a u8 but it can be set to -1 or -2 in aac_tmf_callback() and the error handling in aac_eh_target_reset() relies on it to be signed. [mkp: fixed typo] Fixes: 0d643ff3c353 ("scsi: aacraid: use aac_tmf_callback for reset fib") Signed-off-by: Dan Carpenter Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/aacraid/aacraid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/aacraid/aacraid.h +++ b/drivers/scsi/aacraid/aacraid.h @@ -1346,7 +1346,7 @@ struct fib { struct aac_hba_map_info { __le32 rmw_nexus; /* nexus for native HBA devices */ u8 devtype; /* device type */ - u8 reset_state; /* 0 - no reset, 1..x - */ + s8 reset_state; /* 0 - no reset, 1..x - */ /* after xth TM LUN reset */ u16 qd_limit; u32 scan_counter;