From patchwork Tue Sep 13 12:05:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 12974704 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 236BEC54EE9 for ; Tue, 13 Sep 2022 11:51:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231951AbiIMLvx (ORCPT ); Tue, 13 Sep 2022 07:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231191AbiIMLvv (ORCPT ); Tue, 13 Sep 2022 07:51:51 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECB365D0EC for ; Tue, 13 Sep 2022 04:51:50 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id u22so11535744plq.12 for ; Tue, 13 Sep 2022 04:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date; bh=NfyQ6nNepO7sW+4XJtChCYNp0wf1sW82VU6HqynBJAU=; b=b+Nf6yUVghFhxSsDs7piXB0Oah409cqOORmsEk+oR0woLw9Mrzy10h3FXO/uYC/4Ee lSFQz4N1tIsyD+dpKIObqI1K6+r/XLeox0NrHp8w/hJgDCNccmyDHiywu2fyaCzSo+EW ihWcS+WnHqrBSiuDcL39pC1GyG3XfV1AsQJOo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date; bh=NfyQ6nNepO7sW+4XJtChCYNp0wf1sW82VU6HqynBJAU=; b=1GRL6EZUiELeCda/lAU60HUC0uiuzWzUNBzBmWQqt5rauQQdd9pXhnViFKLQp74ZAE PcX3sCSZ7IZvHnC/KcCeA/BBjJr7n22OCWZoAtvdIj9B7NX+kBhc2ABSf2tw64SuFW3y oKBuG/fgLmrSs34qEqasvQHjaoBijJDYj171yIoV92lrBSXMUj1Y7pUzo5VWnOELl/f8 ZC/rpZAI2UMTFJfctBjTqGlYIUjnRyTPmxMvIEftyprtGnlEC7Z+WxY9fhqFkx3m3Cj/ C3ysgxj8eTbouCYI9PucK+XRvG8+/e0o15iz9pAcGOBjn2R3PFjFXsLArFSp/EFtsg7K Qsqg== X-Gm-Message-State: ACgBeo0z6Vqx43dnD6NKmOTcx/0sgVv+BzJMuZIzMwLaNf2Gjc0X5hoL 9uY1oMYj+cdrvenAiIHC28OZAIuRBbgvTBbm6SKJbdzdCY71q7LvO0W5s81J+OJaxryNrMYtGd0 mjAzEoucUL7CZHoQ3X9fdUJShlBajdgXDmN6wwGRvFlci8Vy/HNl497D5Z5v8tjuqWrQoN1pEvq 0N0Pv9oT3j X-Google-Smtp-Source: AA6agR5trKnaUo+/7ypsbiS3zU7bkSozZdIBiR2WLedXUPV5sCa65TRyp2fljcRGjKajIGLBiinx2Q== X-Received: by 2002:a17:902:d2d2:b0:178:a68:f40f with SMTP id n18-20020a170902d2d200b001780a68f40fmr20052638plc.149.1663069909467; Tue, 13 Sep 2022 04:51:49 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id r2-20020aa79ec2000000b00545f5046372sm1692151pfq.208.2022.09.13.04.51.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 04:51:47 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH 0/1] mpt3sas: Fix return value check of dma_get_required_mask Date: Tue, 13 Sep 2022 17:35:37 +0530 Message-Id: <20220913120538.18759-1-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fix the incorrect return value check of dma_get_required_mask(). Due to this incorrect check, the driver was always setting the dma mask to 63 bit. Sreekanth Reddy (1): mpt3sas: Fix return value check of dma_get_required_mask drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)