From: Dan Carpenter Date: Fri, 28 Mar 2014 08:06:00 +0000 (+0300) Subject: Btrfs: kmalloc() doesn't return an ERR_PTR X-Git-Tag: v3.15-rc1~23^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84dbeb87d1439d3a6614c95e82429542434bafb9;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed