summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-07-29 14:07:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-31 17:38:07 -0700
commitcb09d912e29605bc5a7bc6a204dda8c8f01cf10d (patch)
tree3bb83d531561aba7fd2fc199e86240c0aa82ad24 /include/linux
parentefb623168225ee2f49b607d5aaca15caed20e8e4 (diff)
staging: comedi: das16: fix das16_detach()
The function das16_reset() needs a valid dev->iobase. Since the iobase is requested after the devpriv has been allocated in the attach, move the das16_reset() call into the if (devpriv) and add a if (dev->iobase). Also, move the release of the extra iobase into the if (devpriv) to prevent an invalid memory access. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions