mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] gpib: check register mappings
@ 2026-06-07  9:34 Ruoyu Wang
  2026-06-07  9:34 ` [PATCH 1/2] gpib: ines: check CIS register mapping Ruoyu Wang
  2026-06-07  9:34 ` [PATCH 2/2] gpib: agilent_82350b: check register mappings Ruoyu Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Ruoyu Wang @ 2026-06-07  9:34 UTC (permalink / raw)
  To: Dave Penkler; +Cc: linux-kernel, Ruoyu Wang

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-07  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-07  9:34 [PATCH 0/2] gpib: check register mappings Ruoyu Wang
2026-06-07  9:34 ` [PATCH 1/2] gpib: ines: check CIS register mapping Ruoyu Wang
2026-06-07  9:34 ` [PATCH 2/2] gpib: agilent_82350b: check register mappings Ruoyu Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®