From: Tomas Winkler Date: Sun, 27 Nov 2011 19:43:32 +0000 (+0200) Subject: staging/mei: remove BUG_ON for testing of the response buffer size overflow X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2bcfaa1fa2c21f948f2f08fb07c28226fb9d0dcb;p=linux-beck.git staging/mei: remove BUG_ON for testing of the response buffer size overflow 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mei/interrupt.c b/drivers/staging/mei/interrupt.c index 882d106d54e5..ffa393f88bd6 100644 --- a/drivers/staging/mei/interrupt.c +++ b/drivers/staging/mei/interrupt.c @@ -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) {