[PATCH openEuler-5.10 12/19] comedi: ni_usb6501: fix NULL-deref in command paths