summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/reiserfs.h
diff options
context:
space:
mode:
authorHuang Shijie <shijie8@gmail.com>2013-12-18 23:41:00 +0800
committerBrian Norris <computersforpeace@gmail.com>2014-01-27 21:55:03 -0800
commit0ff76a920e3558307567b45aa0a91fb914924bfc (patch)
treede9fcf55103af0f753dda69599989c3b63758112 /fs/reiserfs/reiserfs.h
parent06f216c83c25adadc231469d51ab133afdfe110a (diff)
downloadblackbird-op-linux-0ff76a920e3558307567b45aa0a91fb914924bfc.tar.gz
blackbird-op-linux-0ff76a920e3558307567b45aa0a91fb914924bfc.zip
mtd: gpmi: add sanity check when mapping DMA for read_buf/write_buf
The buffer pointer passed from the upper layer may points to a buffer in the stack or a buffer allocated by vmalloc, and etc.. This patch adds more sanity check to this buffer. After this patch, if we meet a buffer which is allocated by vmalloc or a buffer in the stack, we will use our own DMA buffer @data_buffer_dma to do the DMA operations. If the buffer is not the cases above, we will map it for DMA operations directly. Signed-off-by: Huang Shijie <shijie8@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'fs/reiserfs/reiserfs.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud