staging/mei: remove BUG_ON for testing of the response buffer size overflow
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 27 Nov 2011 19:43:32 +0000 (21:43 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 21:46:17 +0000 (06:46 +0900)
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>
drivers/staging/mei/interrupt.c

index 882d106d54e52565682a2d634b396d53153239a9..ffa393f88bd6e504d21ccdce819f076219e5fbb6 100644 (file)
@@ -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) {