msm: buspm: Correct size type in buspm_xfer_req

Variable size inside buspm_xfer_req
can be negative and thus would be a
large positive number resulting in arbitary
Kernel read. This patch corrects this value.

CRs-Fixed: 563529
Change-Id: I877db6960530d6c7d1486da9cfdc15a43e57e152
Signed-off-by: Sana Venkat Raju <c_vsana@codeaurora.org>
This commit is contained in:
Sana Venkat Raju 2013-12-15 11:51:17 +05:30 committed by Zhao Wei Liew
parent cd9b514cff
commit aafafaeba7

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2011, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011,2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -23,7 +23,7 @@ struct msm_buspm_map_dev {
/* Read/write data into kernel buffer */
struct buspm_xfer_req {
int size; /* Size of this request, in bytes */
unsigned int size; /* Size of this request, in bytes */
void *data; /* Data buffer to transfer data to/from */
};