#ifndef _TOOLS_LINUX_ASM_MIPS_BARRIER_H #define _TOOLS_LINUX_ASM_MIPS_BARRIER_H /* * FIXME: This came from tools/perf/perf-sys.h, where it was first introduced * in c1e028ef40b8d6943b767028ba17d4f2ba020edb, more work needed to make it * more closely follow the Linux kernel arch/mips/include/asm/barrier.h file. * Probably when we continue work on tools/ Kconfig support to have all the * CONFIG_ needed for properly doing that. */ #define mb() asm volatile( \ ".set mips2\n\t" \ "sync\n\t" \ ".set mips0" \ : /* no output */ \ : /* no input */ \ : "memory") #define wmb() mb() #define rmb() mb() #endif /* _TOOLS_LINUX_ASM_MIPS_BARRIER_H */ an='2'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/sound/pci/hda/patch_cirrus.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-01-24 14:50:19 +0100
committerJens Axboe <axboe@fb.com>2017-01-24 07:55:53 -0700
commit690e5325b8c7d5db05fc569c0f7b888bb4248272 (patch)
treeb9c39916a4397b1eb628e07e4fc6aff91219e393 /sound/pci/hda/patch_cirrus.c
parenta4685d2f58e2230d4e27fb2ee581d7ea35e5d046 (diff)
block: fix use after free in __blkdev_direct_IO
We can't dereference the dio structure after submitting the last bio for this request, as I/O completion might have happened before the code is run. Introduce a local is_sync variable instead. Fixes: 542ff7bf ("block: new direct I/O implementation") Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Matias Bjørling <m@bjorling.me> Tested-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'sound/pci/hda/patch_cirrus.c')