]> sigrok.org Git - libsigrok.git/commit
Sigma: Check state in hw_closedev
authorHåvard Espeland <redacted>
Sat, 15 Jan 2011 13:03:08 +0000 (14:03 +0100)
committerHåvard Espeland <redacted>
Sat, 15 Jan 2011 13:13:23 +0000 (14:13 +0100)
commit9be9893eed4acf03533d1a2fb63719de6eb10753
tree563e9f62131238141c65e4d43539fe254f25fd9e
parent02440dd88c93b049bdd71039ef036af1c8812189
Sigma: Check state in hw_closedev

If the device is closed without previously running hw_openedev
the driver crashes (happens in cleanup). This patch checks
if the device has been opened.
hardware/asix-sigma/asix-sigma.c