Btrfs: fix error handling in btrfs_ioctl_send()
authorTsutomu Itoh <[email protected]>
Fri, 19 Apr 2013 01:04:46 +0000 (01:04 +0000)
committerJosef Bacik <[email protected]>
Mon, 6 May 2013 19:55:13 +0000 (15:55 -0400)
commitecc7ada77b5cd1ac525db8f7d4d266e88af66cc7
treeb1fbf177d840bd2167d2c3cb50b9e05e4fc8c268
parentba1eeaac99ce15063d8bc156e03f8b75aa471647
Btrfs: fix error handling in btrfs_ioctl_send()

fget() returns NULL if error. So, we should check NULL or not.

Signed-off-by: Tsutomu Itoh <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
fs/btrfs/send.c