[PATCH] Memory leak in scsi_debug found by checker

From: Felipe W Damasio
Date: Tue Sep 23 2003 - 14:38:45 EST


Hi James,

Patch against 2.6-test5.

If in the middle of loop a kmalloc failed, that means that the previous calls succeeded..so they must be also be freed (and removed from the dev_info_list).

Please review and consider applying.

Cheers,

Felipe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/