]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r227893 and r228119:
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Feb 2012 04:06:21 +0000 (04:06 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Feb 2012 04:06:21 +0000 (04:06 +0000)
commit096c44efa42326e5d5ab740e0368bacb52b26b9f
tree9af08c56b9dd4ea0e7a990707e48935659273212
parente997df2b70f1f522ee683c2746fd0468527ff911
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/8@231113 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/mfiutil/mfi_config.c