From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B93325B0BF for ; Sun, 7 Jun 2026 09:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780824891; cv=none; b=fSnB0jycxMJio4CX93fmSlH5omivKI9o6dOQ0hSRVGyASN9Gka23URVwE6J1tVSgZ+re7KoJ6CAv5JPSLULRtrfBh3PiycDnONsnBLJ0rrDCzVYYLHS3e3Cj1bKfOOupbeISg04AOx6b7d0fvjpP/1GXBlYevTpu0mo5q9zByWg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780824891; c=relaxed/simple; bh=8Jknw9p3pLjgoIKFRENvTmvBA9UqWfmVYFGnImE/EPU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a0OtU9/Llxxj3yanEL4TO4oLClHkMrtJRhqJ923HG+Hgs/vleBhbUk1Wv+ExSVbLYlC60xVlrjJxZ8jJMLn3Gql/ds2xKNDetr8yi+RbdYVB1dqBiFidBg1wOap0/n0uyySKOLBaFZFhsLU6NuP65i+j6i8dmo2y5uAkcwW+VI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=q/8y8Mio; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q/8y8Mio" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2bf18c30bb2so22476395ad.0 for ; Sun, 07 Jun 2026 02:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780824890; x=1781429690; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=POiZ+Y/ULxUbjwYJdOiFJkTQRRI2pp8vrH9suv+5ftU=; b=q/8y8MiozAuWVfiiISZrPuJ2ZyrscLh6qKgQ0A3qCQV/ubMxGYKzXEBAjQqZqp5VNR mqmQU79ucrUkp7o4PYdiX923RNio+ZhtEOmB3yQ17yxkbIOB+u7TfPhk2f5zKd6+o+Gc Gakp+f1OnXEA+C+bK0s7LPfBOFx98KmkSy8GPf+gBSwHCqO6w/I5uaegjBJTRoLK/mS2 2/pnmqDb8q72iCWPp9/XALBcDW3mRG2UwwqhS/HMRMH/4P+qJLP3p4xGI4DdqpOJ3T1j +cG3vPKYdzukxnuyMBZ0Umtv4Cr264zMsKAlsFvlZFQRJCPNq7eAdTFDoN0oDcOO/FlK 33nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780824890; x=1781429690; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=POiZ+Y/ULxUbjwYJdOiFJkTQRRI2pp8vrH9suv+5ftU=; b=EFzVi+7cdHpkgKx7o3/vM2Z1400fVGG2pNKjEcX55oo7P4QjVMszHKy8hrA8/qxeGV oNnMZQWvyOak6K6ldIh0c1PytFp5UJOfpqDITzDOCHwGUJfECZeR6pra29vM53VMCvBq 4hS889h2pN0F7HKI/dGrp5zEUn5FAC5QloFoSWiVYQIMQ6wb51lP83xLS/qMs5imnMCf snVnz+GM/ouJYYNKNWsA3iWrvnYlam5wV7qZS0SoqqX1KqnrJrobbNVKixlLCmmNh3j9 6u+Lc6ne32KiwlpRZYKBbj73gWXANjON58isdHmYNHUHt4opa0Jb/lFc9fy2UVX+ppV5 afVA== X-Gm-Message-State: AOJu0YyKJ34zW+G/qdsFoPv/MCHLj/MZEjFNQVvmQuHRVsAMRUQp/SCY gFOery9hlwB1eN4RsL97b2KXfgEc9hhhkIMHCYgpaU+XfeuZSigTr1ND X-Gm-Gg: Acq92OEYp3uQ7iesdcum5Qk4M9n+dEHiqpfx3xaB4YpB7vyv02E3zAFd267GB3vUXaR JY/7LPvK34KIExB+fyjgz3FYQLLuNH2A68ZwoamcC23F0Az6ZW/v0c6gUz1XVI5Xn76iRwi4uUT twKlaqG4LjD1t0UnOe33E0Iz4OPO8D9MmsE+H/7qyExG302+APfONKkkh1k/4kqkhu6FGQcnuLZ UodTpriJ+/dS6+ze/OHwiOOfyBOQG5bFULhpd5H0DpBP6V4HmZ+DFk8UvlpKXGfeV7bOioCSXAU pN/GQPX7ZK+d//CFuj+dzxwFDN9g8HFjExuATwfYdrR9IVVVqT0ke0v2CwrcZfLIOgq/Uy+ktug F2dWzEEiLugKG6NuwEH7uyhX8cG1kYPFsvDgytMjirMC5u6jp+6HEzBdY1ruC4wdFLFlsY0/YvD 0WuIGVDSao2IL6DGsoed2gXV2OJMMJwN1rB+K9cdZQo1k7ANpsY2TN X-Received: by 2002:a17:902:c952:b0:2c0:fa4e:91ed with SMTP id d9443c01a7336-2c1e834699fmr133281045ad.18.1780824889799; Sun, 07 Jun 2026 02:34:49 -0700 (PDT) Received: from haichao.tail057a43.ts.net ([2001:da8:e000:1206:5d57:2cec:64ac:50a]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164f6d59csm139016845ad.4.2026.06.07.02.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jun 2026 02:34:49 -0700 (PDT) From: Ruoyu Wang To: Dave Penkler Cc: linux-kernel@vger.kernel.org, Ruoyu Wang Subject: [PATCH 0/2] gpib: check register mappings Date: Sun, 7 Jun 2026 17:34:43 +0800 Message-ID: <20260607093445.3-1-ruoyuw560@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This short series checks ioremap() results in two GPIB drivers before the returned mappings are dereferenced during device setup. The INES PCMCIA driver writes through the mapped CIS attribute-memory window, and the Agilent 82350B driver uses several mapped PCI BARs during attach. In both cases, failed mappings should stop setup and unwind the partial state instead of continuing with a NULL mapping. Ruoyu Wang (2): gpib: ines: check CIS register mapping gpib: agilent_82350b: check register mappings drivers/gpib/agilent_82350b/agilent_82350b.c | 80 +++++++++++++++----- drivers/gpib/agilent_82350b/agilent_82350b.h | 1 + drivers/gpib/ines/ines_gpib.c | 4 + 3 files changed, 65 insertions(+), 20 deletions(-) -- 2.51.0