Fix some possible NULL pointer dereferences in the detach() handlers
resulting from the addition of the attach_pci() handlers.  Most of the
drivers seem okay but a few don't check the validity of certain
pointers, leading to possible NULL pointer dereferences.

All of these need fixing for the 3.6 stable series.  Patch 3 is slightly
unrelated and applies to earlier stable kernel series (it should apply
cleanly to 3.5.x but I'll have to submit other patches for the other
stable kernels once it reaches mainline).

1) staging: comedi: 8255_pci: fix possible NULL deref during detach
2) staging: comedi: amplc_dio200: fix possible NULL deref during detach
3) staging: comedi: amplc_pc236: fix invalid register access during
   detach
4) staging: comedi: amplc_pc236: fix possible NULL deref during detach
5) staging: comedi: amplc_pc263: fix possible NULL deref during detach
6) staging: comedi: das08: fix possible NULL deref during detach
7) staging: comedi: ni_labpc: fix possible NULL deref during detach

 drivers/staging/comedi/drivers/8255_pci.c     | 2 ++
 drivers/staging/comedi/drivers/amplc_dio200.c | 2 ++
 drivers/staging/comedi/drivers/amplc_pc236.c  | 5 +++--
 drivers/staging/comedi/drivers/amplc_pc263.c  | 2 ++
 drivers/staging/comedi/drivers/das08.c        | 2 ++
 drivers/staging/comedi/drivers/ni_labpc.c     | 2 ++
 6 files changed, 13 insertions(+), 2 deletions(-)
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to