aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2018-07-19 11:01:04 +0200
committerTakashi Iwai <[email protected]>2018-07-23 09:06:33 +0200
commitdfef01e150824b0e6da750cacda8958188d29aea (patch)
tree0718893e1055b764ffc89f6ca2673478ba791533 /tools/perf/scripts/python/export-to-sqlite.py
parentf3d737b6340b0c7bacd8bc751605f0ed6203f146 (diff)
ALSA: memalloc: Don't exceed over the requested size
snd_dma_alloc_pages_fallback() tries to allocate pages again when the allocation fails with reduced size. But the first try actually *increases* the size to power-of-two, which may give back a larger chunk than the requested size. This confuses the callers, e.g. sgbuf assumes that the size is equal or less, and it may result in a bad loop due to the underflow and eventually lead to Oops. The code of this function seems incorrectly assuming the usage of get_order(). We need to decrease at first, then align to power-of-two. Reported-and-tested-by: he, bo <[email protected]> Reported-by: zhang jun <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions