From: Taehee Yoo Date: Thu, 2 Jun 2022 14:01:08 +0000 (+0000) Subject: amt: fix wrong type string definition X-Git-Tag: howlett/maple/20220722_2~295^2~23^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d7970039d87c926bb648982e920cb9851c19f3e1;p=users%2Fjedix%2Flinux-maple.git amt: fix wrong type string definition amt message type definition starts from 1, not 0. But type_str[] starts from 0. So, it prints wrong type information. Fixes: cbc21dc1cfe9 ("amt: add data plane of amt interface") Signed-off-by: Taehee Yoo Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/amt.c b/drivers/net/amt.c index ef483bf51033..be2719a3ba70 100644 --- a/drivers/net/amt.c +++ b/drivers/net/amt.c @@ -51,6 +51,7 @@ static char *status_str[] = { }; static char *type_str[] = { + "", /* Type 0 is not defined */ "AMT_MSG_DISCOVERY", "AMT_MSG_ADVERTISEMENT", "AMT_MSG_REQUEST",