From: Linus Torvalds Date: Tue, 31 Jan 2017 21:10:59 +0000 (-0800) Subject: Merge branch 'for-4.10-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj... X-Git-Tag: v4.14-rc1~1614 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=298a2d87518ec01bb36070fafe31da7746556db0;p=platform%2Fkernel%2Flinux-rpi3.git Merge branch 'for-4.10-fixes' of git://git./linux/kernel/git/tj/percpu Pull percpu fix from Tejun Heo: "Douglas found and fixed a ref leak bug in percpu_ref_tryget[_live](). The bug is caused by storing the return value of atomic_long_inc_not_zero() into an int temp variable before returning it as a bool. The interim cast to int loses the upper bits and can lead to false negatives. As percpu_ref uses a high bit to mark a draining counter, this can happen relatively easily. Fixed by using bool for the temp variable" * 'for-4.10-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu: percpu-refcount: fix reference leak during percpu-atomic transition --- 298a2d87518ec01bb36070fafe31da7746556db0