Btrfs: kmalloc() doesn't return an ERR_PTR
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Mar 2014 08:06:00 +0000 (11:06 +0300)
committerChris Mason <clm@fb.com>
Mon, 7 Apr 2014 16:08:44 +0000 (09:08 -0700)
commit84dbeb87d1439d3a6614c95e82429542434bafb9
tree565df09d67424d796b3c321b579ff967885e4c1e
parente9894fd3e3b3c5ecaa096d32c2d2b79db8e64433
Btrfs: kmalloc() doesn't return an ERR_PTR

The error handling was copy and pasted from memdup_user().  It should be
checking for NULL obviously.

Fixes: abccd00f8af2 ('btrfs: Fix 32/64-bit problem with BTRFS_SET_RECEIVED_SUBVOL ioctl')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c