]> git.baikalelectronics.ru Git - kernel.git/commit
affs: fix potential memory leak when parsing option 'prefix'
authorChengguang Xu <cgxu519@gmx.com>
Tue, 22 May 2018 04:24:25 +0000 (12:24 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 10:36:41 +0000 (12:36 +0200)
commit13ebc24ad222ffaa9fdcb26f453dd68cd826870f
tree24b09f9e02ad881459cd15cc891a2ad6c2c4043c
parent51202618046b56b36cc536d939b00d31e3ea2f0d
affs: fix potential memory leak when parsing option 'prefix'

When specifying option 'prefix' multiple times, current option parsing
will cause memory leak.  Hence, call kfree for previous one in this
case.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/affs/super.c