All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] non-const dm_config_find_node
@ 2011-08-31 14:30 Petr Rockai
  2011-08-31 14:44 ` Zdenek Kabelac
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Rockai @ 2011-08-31 14:30 UTC (permalink / raw)
  To: lvm-devel

Hi,

this patch replaces const usage of dm_config_find_node with more
appropriate value-lookup functionality. A number of bugs (copied and
pasted all over the code) should disappear:

- most string lookup based on dm_config_find_node would segfault when
  encountering a non-zero integer (the intention there was to print an
  error message instead)
- check for required sections in metadata would have been satisfied by
  values as well (i.e. not sections)
- encountering a section in place of expected flag value would have
  segfaulted (due to assumed but unchecked cn->v != NULL)

Yours,
   Petr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dm_config_find_node.diff
Type: text/x-diff
Size: 19939 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20110831/54fa69e5/attachment.bin>
-------------- next part --------------

-- 
id' Ash = Ash; id' Dust = Dust; id' _ = undefined

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-31 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-31 14:30 [PATCH] non-const dm_config_find_node Petr Rockai
2011-08-31 14:44 ` Zdenek Kabelac

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.