summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Sharma <rahul.sharma@samsung.com>2012-12-26 08:02:36 -0500
committerTushar Behera <tushar.behera@linaro.org>2013-06-19 16:54:28 +0530
commit7d02597165ffc604e26f6a584d43a4bb61b16064 (patch)
tree3c7886de12fbce5cf8d03b3bff0216abf187fb43
parentfd9bee301b25d4293d7d614e98711926ae7aaa1d (diff)
downloadlinux-linaro-tracking-7d02597165ffc604e26f6a584d43a4bb61b16064.tar.gz
TEMP: fixing for SG_Alloc crash by increasing size of sg list container
This patch needs to be replaces by proper fix which should be somewhere inside exynos DRM. Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--include/linux/scatterlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h
index 26806775b11b..efec8990795e 100644
--- a/include/linux/scatterlist.h
+++ b/include/linux/scatterlist.h
@@ -248,7 +248,7 @@ size_t sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents,
* Maximum number of entries that will be allocated in one piece, if
* a list larger than this is required then chaining will be utilized.
*/
-#define SG_MAX_SINGLE_ALLOC (PAGE_SIZE / sizeof(struct scatterlist))
+#define SG_MAX_SINGLE_ALLOC ((PAGE_SIZE<<4) / sizeof(struct scatterlist))
/*
* sg page iterator