diff options
author | Byongho Lee <bhlee.kernel@gmail.com> | 2015-08-28 00:38:18 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-08-31 19:25:14 +0200 |
commit | 657e520a111601918feff9ce957ea19d9b18d0dd (patch) | |
tree | dc84e72b40fa271a36d63a3ed9d96478f5b0bd9b /radix-tree.h | |
parent | 6e381418904027a9f968e97403add5bda03fb319 (diff) |
btrfs-progs: add memory allocation fail check in btrfs_add_to_fsid()
In btrfs_add_to_fsid(), strdup() allocates memory to device->name, but
the return value is not checked.
So add the return value check and error handling code.
And clean-up error handling code for ENOMEM case.
Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'radix-tree.h')
0 files changed, 0 insertions, 0 deletions