On Fri, Aug 28, 2015 at 12:38:18AM +0900, Byongho Lee wrote: > 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@xxxxxxxxx> Applied, thanks. Btw, the kmalloc/kfree functions come from the kernel code and should not be used in the pure-userspace code, like utils.c, but I don't mind for now. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
