Skip to content

Commit

Permalink
fusion: mptsas, fix lock imbalance
Browse files Browse the repository at this point in the history
Fix two typos in mptsas_not_responding_devices. It was mutex_lock instead
of unlock.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: "Desai, Kashyap" <Kashyap.Desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Jiri Slaby authored and James Bottomley committed Jun 22, 2009
1 parent 3c559ea commit 129dd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/message/fusion/mptsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -3518,7 +3518,7 @@ mptsas_not_responding_devices(MPT_ADAPTER *ioc)
} else
mptsas_volume_delete(ioc, sas_info->fw.id);
}
mutex_lock(&ioc->sas_device_info_mutex);
mutex_unlock(&ioc->sas_device_info_mutex);

/* expanders */
mutex_lock(&ioc->sas_topology_mutex);
Expand Down Expand Up @@ -3549,7 +3549,7 @@ mptsas_not_responding_devices(MPT_ADAPTER *ioc)
goto redo_expander_scan;
}
}
mutex_lock(&ioc->sas_topology_mutex);
mutex_unlock(&ioc->sas_topology_mutex);
}

/**
Expand Down

0 comments on commit 129dd98

Please sign in to comment.