Btrfs: Free correct pointer after using strsep
authorTero Roponen <tero.roponen@gmail.com>
Mon, 27 Dec 2010 08:43:13 +0000 (16:43 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Wed, 26 Jan 2011 17:05:11 +0000 (01:05 +0800)
commit3f3d0bc0df041236fad4ffa82188a6e4ef9af75e
treeb27b210a3c48e08e63d1ee69c9b4b7e86709e360
parentbdc924bb4cdac92b945945c3149ab8191c92d75d
Btrfs: Free correct pointer after using strsep

We must save and free the original kstrdup()'ed pointer
because strsep() modifies its first argument.

Signed-off-by: Tero Roponen <tero.roponen@gmail.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/super.c