|
@@ -3914,9 +3914,9 @@ static int __init aha152x_init(void)
|
|
|
|
|
|
static void __exit aha152x_exit(void)
|
|
|
{
|
|
|
- struct aha152x_hostdata *hd;
|
|
|
+ struct aha152x_hostdata *hd, *tmp;
|
|
|
|
|
|
- list_for_each_entry(hd, &aha152x_host_list, host_list) {
|
|
|
+ list_for_each_entry_safe(hd, tmp, &aha152x_host_list, host_list) {
|
|
|
struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata);
|
|
|
|
|
|
aha152x_release(shost);
|