summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/intel.c
diff options
context:
space:
mode:
authorMichael Brown2017-03-09 13:45:45 +0100
committerMichael Brown2017-03-09 14:07:57 +0100
commit9db9221ea0e3a7a4b32cf7fbdb17a46af474ce2b (patch)
tree47cd05ed9dbe7f8ba87fb2790855b33bc7d26c37 /src/drivers/net/intel.c
parent[block] Use intfs_shutdown() when shutting down multiple interfaces (diff)
downloadipxe-9db9221ea0e3a7a4b32cf7fbdb17a46af474ce2b.tar.gz
ipxe-9db9221ea0e3a7a4b32cf7fbdb17a46af474ce2b.tar.xz
ipxe-9db9221ea0e3a7a4b32cf7fbdb17a46af474ce2b.zip
[scsi] Avoid duplicate calls to scsicmd_close()
When a SCSI device is closed in error, the shutdown of the device's block data interface will probably lead to any outstanding commands being closed (by whichever object is currently connected to the block data interface). However, commands remain in the list of outstanding commands until the final reference is dropped. The result is that scsidev_close() will make a second call to scsicmd_close() for each command. This is harmless, but produces confusing debug messages. Fix by treating the outstanding command list as holding an explicit reference to each command, and removing the command from the list of outstanding commands in scsicmd_close(). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/intel.c')
0 files changed, 0 insertions, 0 deletions