Skip to content

gpib: check register mappings

Ruoyu Wang lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpib: ines: check CIS register mappingdrivers/gpib/ines/ines_gpib.c+4 -00 replies
2/2gpib: agilent_82350b: check register mappingsdrivers/gpib/agilent_82350b/agilent_82350b.c drivers/gpib/agilent_82350b/agilent_82350b.h+61 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] gpib: check register mappings

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(-)
Signature · 1 line
2.51.0