When failing to send a command we don't expect a response. Clear the
`null_user_handler` like is done in the success path.
Signed-off-by: Markus Boehme <markubo@amazon.com>
Message-Id: <
1599495937-10654-1-git-send-email-markubo@amazon.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
 
 
        rv = send_get_device_id_cmd(intf);
        if (rv)
-               return rv;
+               goto out_reset_handler;
 
        wait_event(intf->waitq, bmc->dyn_id_set != 2);
 
        /* dyn_id_set makes the id data available. */
        smp_rmb();
 
+out_reset_handler:
        intf->null_user_handler = NULL;
 
        return rv;
                        dev_warn(intf->si_dev,
                                 "Error sending channel information for channel 0, %d\n",
                                 rv);
+                       intf->null_user_handler = NULL;
                        return -EIO;
                }