https://github.com/torvalds/linux
Revision 851b10d60879539bec8acecb35ed361393399282 authored by Konstantin Khlebnikov on 18 April 2016, 11:34:05 UTC, committed by David S. Miller on 20 April 2016, 00:04:24 UTC
This patch fixes couple error paths after allocation failures.
Atomic set of page reference counter is safe only if it is zero,
otherwise set can race with any speculative get_page_unless_zero.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 04aeb56
History
Tip revision: 851b10d60879539bec8acecb35ed361393399282 authored by Konstantin Khlebnikov on 18 April 2016, 11:34:05 UTC
net/mlx4_en: do batched put_page using atomic_sub
Tip revision: 851b10d
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.4 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 344.2 KB
Makefile -rw-r--r-- 55.0 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top