Changes in uspace/lib/nic/src/nic_impl.c [01380b1:6d8455d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_impl.c
r01380b1 r6d8455d 85 85 } 86 86 if (state == NIC_STATE_ACTIVE) { 87 if (nic_data->nil_session == NULL || nic_data->device_id < 0) { 87 if (nic_data->nil_session == NULL || nic_data->net_session == NULL 88 || nic_data->device_id < 0) { 88 89 fibril_rwlock_write_unlock(&nic_data->main_lock); 89 90 return EINVAL; … … 804 805 } 805 806 807 /** Default implementation of the device_added method 808 * 809 * Just calls nic_ready. 810 * 811 * @param dev 812 * 813 */ 814 void nic_device_added_impl(ddf_dev_t *dev) 815 { 816 nic_ready((nic_t *) dev->driver_data); 817 } 818 806 819 /** 807 820 * Default handler for unknown methods (outside of the NIC interface).
Note:
See TracChangeset
for help on using the changeset viewer.