aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-09-10 10:26:20 +0100
committerThomas White <taw@bitwiz.org.uk>2009-09-10 10:26:20 +0100
commit166226209d59b1210cadfdec6b31e7d633100d9d (patch)
tree7dbddafd1aa525a8bb34f39d03c2b1d4dd54b380
parentf0f4bd790d1f6409084d9a1a79beba1d7a8baf7d (diff)
Fix sanitisation
Muppetry... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
-rw-r--r--drivers/mfd/glamo/glamo-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/glamo/glamo-buffer.c b/drivers/mfd/glamo/glamo-buffer.c
index b7aceaa3a86..e1c973c66af 100644
--- a/drivers/mfd/glamo/glamo-buffer.c
+++ b/drivers/mfd/glamo/glamo-buffer.c
@@ -104,7 +104,7 @@ int glamo_ioctl_gem_create(struct drm_device *dev, void *data,
/* Alignment must be a non-zero multiple of 2 */
alignment = args->alignment;
- if ( alignment == 2 ) alignment = 2;
+ if ( alignment < 2 ) alignment = 2;
if ( alignment % 2 ) alignment *= 2;
/* Size must be similarly sanitised */