mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
cd9b514cff
commit
aafafaeba7
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue