[PATCH 5/6] misc: sgi-gru: fix Using uninitialized value excdet.cbrexecstatus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Yan Lei <yan_lei@xxxxxxxxxxxxx>

Signed-off-by: Yan Lei <yan_lei@xxxxxxxxxxxxx>
---
 drivers/misc/sgi-gru/grukservices.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/sgi-gru/grukservices.c b/drivers/misc/sgi-gru/grukservices.c
index 19dbdad8a..c4dbd1a10
--- a/drivers/misc/sgi-gru/grukservices.c
+++ b/drivers/misc/sgi-gru/grukservices.c
@@ -453,7 +453,7 @@ static int gru_wait_idle_or_exception(struct gru_control_block_status *gen)
 static int gru_retry_exception(void *cb)
 {
 	struct gru_control_block_status *gen = (void *)cb;
-	struct control_block_extended_exc_detail excdet;
+	struct control_block_extended_exc_detail excdet = {0};
 	int retry = EXCEPTION_RETRY_LIMIT;
 
 	while (1)  {
-- 
2.30.0





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux