Skip to content

Commit

Permalink
staging/mei: remove BUG_ON for testing of the response buffer size ov…
Browse files Browse the repository at this point in the history
…erflow

We can remove BUG_ON in mei_irq_thread_read_client_message()
as the testing for response buffer size overflow has already
graceful handling in place.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent ef497f4 commit 2bcfaa1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/mei/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ static int mei_irq_thread_read_client_message(struct mei_io_list *complete_list,
buffer = (unsigned char *)
(cb_pos->response_buffer.data +
cb_pos->information);
BUG_ON(cb_pos->response_buffer.size <
mei_hdr->length +
cb_pos->information);

if (cb_pos->response_buffer.size <
mei_hdr->length + cb_pos->information) {
Expand Down

0 comments on commit 2bcfaa1

Please sign in to comment.