]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r227893 and r228119:
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Feb 2012 04:03:39 +0000 (04:03 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Feb 2012 04:03:39 +0000 (04:03 +0000)
commita5a7151b201edbbe3ba02626938af9b001c6631c
treea48bd5a6713cd71069f193d1ccb7a9a43eec64b9
parent2ba12705c74a9e66f5f442d434714b5778affc69
MFC r227893 and r228119:

  Avoid double free creating a new RAID with invalid command line
  arguments.

  In build_volume(), check if arrays is allocated before traversing its
  items.  While parsing the arrays input, it's possible that we reach the
  error path before initializing the 'arrays' pointer, which in turn leads
  to a NULL deference.

git-svn-id: svn://svn.freebsd.org/base/stable/9@231112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/mfiutil/mfi_config.c