All of lore.kernel.org
 help / color / mirror / Atom feed
* NULL pointer issue in dm-mpath.c
@ 2008-01-03 15:07 Alan D. Brunelle
  0 siblings, 0 replies; only message in thread
From: Alan D. Brunelle @ 2008-01-03 15:07 UTC (permalink / raw)
  To: dm-devel

While looking at this file, I noticed:

         if (!pgpath->pg->ps.type) {
                 DMWARN("Reinstate path not supported by path selector %s",
                        pgpath->pg->ps.type->name);
                 r = -EINVAL;
                 goto out;
         }

The DMWARN will end up following a NULL pointer (as pgpath->pg->ps.type 
is NULL). I have no idea how to fix this, nor if its really possible to 
hit this error case, nonetheless I thought I'd point this out. (As maybe 
someone out there would know how to correctly patch this.)

Regards,
Alan D. Brunelle
HP Open Source & Linux Organization / Scalability & Performance Group

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-03 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-03 15:07 NULL pointer issue in dm-mpath.c Alan D. Brunelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.