diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-03-06 20:34:32 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-07 21:45:42 (GMT) |
commit | 97d5cb094cd2fb3e646b4a8cbc30445e61d62ef8 (patch) | |
tree | 1e37239af571d627c25050108b9d30398b06d903 /drivers | |
parent | e559895ae99fb99ecb91d5ad9e0b742ad881b341 (diff) | |
download | linux-fsl-qoriq-97d5cb094cd2fb3e646b4a8cbc30445e61d62ef8.tar.xz |
staging/mei: don't use read buffer for writing
In mei_irq_thread_read_bus_message we reused mei_hdr
allocated on read buffer to write the stop message.
There is no bug associated with this but for code
clarity we use write buffer also for message header.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/mei/interrupt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/mei/interrupt.c b/drivers/staging/mei/interrupt.c index ce14e39..e70bc37 100644 --- a/drivers/staging/mei/interrupt.c +++ b/drivers/staging/mei/interrupt.c @@ -652,6 +652,7 @@ static void mei_irq_thread_read_bus_message(struct mei_device *dev, } else { dev->version = version_res->me_max_version; /* send stop message */ + mei_hdr = (struct mei_msg_hdr *)&dev->wr_msg_buf[0]; mei_hdr->host_addr = 0; mei_hdr->me_addr = 0; mei_hdr->length = sizeof(struct hbm_host_stop_request); |