>From 056dc24440bb54a7e107fbae368915b3173c333d Mon Sep 17 00:00:00 2001 From: Doug Ledford <dledford@xxxxxxxxxx> Date: Tue, 13 Apr 2010 13:12:59 -0400 Subject: [PATCH 01/35] [hotunplug] we are testing mdstat, not ent which is undefined at this point Signed-off-by: Doug Ledford <dledford@xxxxxxxxxx> --- mdstat.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mdstat.c b/mdstat.c index 58d349d..3bb74fa 100644 --- a/mdstat.c +++ b/mdstat.c @@ -348,9 +348,9 @@ struct mdstat_ent *mdstat_by_component(char *name) while (mdstat) { struct dev_member *m; struct mdstat_ent *ent; - if (ent->metadata_version && - strncmp(ent->metadata_version, "external:", 9) == 0 && - is_subarray(ent->metadata_version+9)) + if (mdstat->metadata_version && + strncmp(mdstat->metadata_version, "external:", 9) == 0 && + is_subarray(mdstat->metadata_version+9)) /* don't return subarrays, only containers */ ; else for (m = mdstat->members; m; m = m->next) { -- 1.6.4.2 --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. z siedziba w Gdansku ul. Slowackiego 173 80-298 Gdansk Sad Rejonowy Gdansk Polnoc w Gdansku, VII Wydzial Gospodarczy Krajowego Rejestru Sadowego, numer KRS 101882 NIP 957-07-52-316 Kapital zakladowy 200.000 zl This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html