From patchwork Thu Nov 3 13:12:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 621348 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 B5316C433FE for ; Thu, 3 Nov 2022 13:12:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231255AbiKCNMy (ORCPT ); Thu, 3 Nov 2022 09:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbiKCNMw (ORCPT ); Thu, 3 Nov 2022 09:12:52 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2629D140A2 for ; Thu, 3 Nov 2022 06:12:50 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id l6so1609773pjj.0 for ; Thu, 03 Nov 2022 06:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qW4gA4/+DJWMLlFKdym0SavPVOtUXQ/aM3xm/iknIAY=; b=ZodLdYP8lVPofd3B+oGsbQc367anhy5Z1zIbLllCkCs5hrPGWsNZeaDVg6iqggLZ2X PYHvImabBOwQdJXpwvWpcjQxHPsozq0dVT8tpOtk7pP9hgu/jQz5p4ypTfeL3kzdzyRe H5I2Gc7OMVjcDdDmfMh+Oam2ryPHSQt4/OMQc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qW4gA4/+DJWMLlFKdym0SavPVOtUXQ/aM3xm/iknIAY=; b=KIBUmJw/wWdSO2N4TIx0yXkAzAdWbeb5HgCVd+rMq7m4kTrDecZZttF/EV4UpKXeBR 2HiR/tUMDN47yk9zYFeUdlLex+/9KX68JxWcaA3OZc65W3UdkSt5Nk3zDInxtaq0DPLa oTl8FG//fvYCjmWMm6eMUrEczpt3FYC34V1i6WNH/DJr8A1I2Xy+GG945i31pDG0vta8 H+e1t/7ZVTugpM56DJumMsc65CUNO+PbIb6/Iu/njHe/FbiIyxncH4djZdRQLGnHNXYD g3PCntmJRcfffv6+sK/MsGrOKMz9oG6HRFSHAq0N+UwE3kKRDdX1pSvhuBQ5/0Te+orx vnZw== X-Gm-Message-State: ACrzQf391Q+hDBVFDvqrKWBehYf33BxOX+O1J1GqhOYnyY31kd4NUFB0 lRgEOt5OMCCxEZn8zuKrzayy+g== X-Google-Smtp-Source: AMsMyM7bFYT5XNLn8m3prIt0FA0POqOU3cUEsL0nsCNLmS94LTYBXYnQNl/5s1+8joJQPsF2fQMb5w== X-Received: by 2002:a17:90a:17eb:b0:212:8210:c92e with SMTP id q98-20020a17090a17eb00b002128210c92emr47687897pja.62.1667481169633; Thu, 03 Nov 2022 06:12:49 -0700 (PDT) Received: from shuah-tx13.. ([103.99.10.63]) by smtp.gmail.com with ESMTPSA id p8-20020a1709027ec800b0018703bf3ec9sm647871plb.61.2022.11.03.06.12.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 06:12:48 -0700 (PDT) From: Shuah Khan To: shuah@kernel.org, valentina.manea.m@gmail.com Cc: Shuah Khan , gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Fix uninit and signed integer overflow errors Date: Thu, 3 Nov 2022 07:12:41 -0600 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fix uninitialized variable and signed integer overflow errors reported by cppcheck. Shuah Khan (2): usb/usbip: fix uninitialized variables errors usb/usbip: Fix v_recv_cmd_submit() to use PIPE_BULK define drivers/usb/usbip/stub_main.c | 2 +- drivers/usb/usbip/stub_rx.c | 4 ++-- drivers/usb/usbip/stub_tx.c | 4 ++-- drivers/usb/usbip/usbip_event.c | 2 +- drivers/usb/usbip/vhci_hcd.c | 2 +- drivers/usb/usbip/vhci_rx.c | 2 +- drivers/usb/usbip/vhci_tx.c | 4 ++-- drivers/usb/usbip/vudc_dev.c | 2 +- drivers/usb/usbip/vudc_rx.c | 7 +++++-- drivers/usb/usbip/vudc_transfer.c | 4 ++-- 10 files changed, 18 insertions(+), 15 deletions(-)