Ian Abbott
ee280d134f
staging: comedi: das08: fix possible NULL deref during detach
...
`das08_detach()` is called by the comedi core to clean up if either
`das08_attach()` or `das08_attach_pci()` returns an error. It sets
`thisboard` to the return value of `comedi_board(dev)` and assumes it is
non-null. This is a valid assumption if `das08_attach()` fails, but not
if `das08_attach_pci()` fails, leading to a possible NULL pointer
dereference.
Check `thisboard` at the top of `das08_detach()` and return early if it
is `NULL`. This is okay because the only other thing that could have
been allocated is `dev->private` and that is freed by the comedi core,
not by this function.
Cc: <stable@vger.kernel.org > # 3.6.x
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-10-22 11:46:35 -07:00
..
2012-10-09 01:47:35 -04:00
2012-10-05 22:32:05 -03:00
2012-10-06 03:04:40 +09:00
2012-10-09 16:23:02 +09:00
2012-09-29 15:37:49 +01:00
2012-10-11 09:04:23 +09:00
2012-10-02 13:38:27 -07:00
2012-10-01 19:39:48 -07:00
2012-10-11 18:41:29 +08:00
2012-10-02 17:26:42 -07:00
2012-10-02 18:32:35 -07:00
2012-10-02 13:38:27 -07:00
2012-10-08 14:58:56 -07:00
2012-10-08 22:52:54 -04:00
2012-10-07 20:55:16 +09:00
2012-10-10 11:10:41 +09:00
2012-10-06 03:16:12 +09:00
2012-10-02 09:54:49 -07:00
2012-10-09 18:26:28 +02:00
2012-10-09 16:08:04 +09:00
2012-10-12 10:21:02 +09:00
2012-10-11 00:45:21 -07:00
2012-10-13 11:27:59 +09:00
2012-10-11 10:27:51 +09:00
2012-10-06 03:04:41 +09:00
2012-09-26 22:28:21 -04:00
2012-10-19 19:44:06 +01:00
2012-10-10 19:52:19 +09:00
2012-10-13 10:56:03 +09:00
2012-10-08 06:33:44 +09:00
2012-09-24 10:07:40 -07:00
2012-10-10 22:50:45 -04:00
2012-10-10 20:14:07 +09:00
2012-10-07 21:04:56 +09:00
2012-10-06 03:16:12 +09:00
2012-10-13 13:22:01 -07:00
2012-10-12 12:39:17 +09:00
2012-09-26 14:04:09 -07:00
2012-10-07 17:29:24 +09:00
2012-10-10 20:15:24 +09:00
2012-10-11 17:21:40 -04:00
2012-10-09 15:08:42 +01:00
2012-10-12 13:56:52 -04:00
2012-09-27 10:47:48 +02:00
2012-10-03 09:44:08 -07:00
2012-10-09 16:22:18 +09:00
2012-10-09 16:11:46 +09:00
2012-10-06 03:16:12 +09:00
2012-10-01 19:11:38 -07:00
2012-10-10 08:57:26 +02:00
2012-10-09 01:47:35 -04:00
2012-10-13 11:27:59 +09:00
2012-10-06 03:04:56 +09:00
2012-10-10 20:15:24 +09:00
2012-10-11 08:50:15 +09:00
2012-10-05 12:01:30 +09:00
2012-10-07 21:04:56 +09:00
2012-10-07 21:04:56 +09:00
2012-10-11 08:50:16 +09:00
2012-10-09 14:17:00 +02:00
2012-10-13 10:57:01 +09:00
2012-10-01 19:11:38 -07:00
2012-10-10 11:10:41 +09:00
2012-10-22 11:46:35 -07:00
2012-10-11 09:04:23 +09:00
2012-10-09 01:35:52 -04:00
2012-10-13 11:16:58 +09:00
2012-10-09 16:22:19 +09:00
2012-10-11 15:18:49 -04:00
2012-10-10 09:10:32 -06:00
2012-10-10 19:52:19 +09:00
2012-10-12 10:21:02 +09:00
2012-09-28 15:05:16 +09:30
2012-10-01 12:09:59 -07:00
2012-10-07 21:06:10 +09:00
2012-10-12 22:20:28 +09:00
2012-10-01 18:46:13 -07:00
2012-10-02 13:38:27 -07:00