aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorOGAWA Hirofumi <[email protected]>2018-07-21 00:53:42 +0000
committerLinus Torvalds <[email protected]>2018-07-21 19:50:46 +0000
commit35033ab988c396ad7bce3b6d24060c16a9066db8 (patch)
tree52602d1e8977c4fa765150c99f9af610f7a8fe5e /fs/btrfs/dev-replace.c
parentMAINTAINERS: Peter has moved (diff)
downloadkernel-35033ab988c396ad7bce3b6d24060c16a9066db8.tar.gz
kernel-35033ab988c396ad7bce3b6d24060c16a9066db8.zip
fat: fix memory allocation failure handling of match_strdup()
In parse_options(), if match_strdup() failed, parse_options() leaves opts->iocharset in unexpected state (i.e. still pointing the freed string). And this can be the cause of double free. To fix, this initialize opts->iocharset always when freeing. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: OGAWA Hirofumi <[email protected]> Reported-by: [email protected] Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions