diff -r d94281cb835a -r 87e502828b3f devices/8139too-2.6.13-ethercat.c --- a/devices/8139too-2.6.13-ethercat.c Mon Oct 27 14:55:50 2014 +0100 +++ b/devices/8139too-2.6.13-ethercat.c Mon Oct 27 16:33:23 2014 +0100 @@ -1145,9 +1145,12 @@ if (rtl_chip_info[tp->chipset].flags & HasHltClk) RTL_W8 (HltClk, 'H'); /* 'R' would leave the clock running. */ - if (tp->ecdev && ecdev_open(tp->ecdev)) { - ecdev_withdraw(tp->ecdev); - goto err_out; + if (tp->ecdev) { + i = ecdev_open(tp->ecdev); + if (i) { + ecdev_withdraw(tp->ecdev); + goto err_out; + } } return 0;