[PATCH 4.14 16/22] comedi: ni_usb6501: fix NULL-deref in command paths