If stir_reset() succeeds, stir_net_open() must not return a
success status code for every failure until irlap_open().
if (err)
goto err_out1;
+ err = -ENOMEM;
+
/* Note: Max SIR frame possible is 4273 */
stir->tx_data = kmalloc(STIR_FIFO_SIZE, GFP_KERNEL);
if (!stir->tx_data) {
* Note : will send immediately a speed change...
*/
sprintf(hwname, "usb#%d", stir->usbdev->devnum);
- err = -ENOMEM;
stir->irlap = irlap_open(netdev, &stir->qos, hwname);
if (!stir->irlap) {
ERROR("%s(): irlap_open failed\n", __FUNCTION__);