From a322ea2bddeb9ea02bc0648096a9f115d92ca7e0 Mon Sep 17 00:00:00 2001 From: Andrea Arcangeli Date: Tue, 25 Jul 2017 23:43:20 +0200 Subject: [PATCH] macloader: Drop semcove case and enum The all_ranges structure has one entry less than MAX_TYPES because semcove type is not defined there, but there's no check for NULL and if the mac isn't found it segfaults. Change-Id: Ie218ea0a82b03992085db0f2d1cfc7079e7415a0 --- macloader/macaddr_mappings.h | 1 - macloader/macloader.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/macloader/macaddr_mappings.h b/macloader/macaddr_mappings.h index 523868a4..f0b83ea3 100644 --- a/macloader/macaddr_mappings.h +++ b/macloader/macaddr_mappings.h @@ -24,7 +24,6 @@ enum Type { NONE, MURATA, SEMCOSH, - SEMCOVE, SEMCO3RD, SEMCO, WISOL, diff --git a/macloader/macloader.c b/macloader/macloader.c index 7596d47c..3efcc0bd 100644 --- a/macloader/macloader.c +++ b/macloader/macloader.c @@ -190,9 +190,6 @@ int main() { case SEMCOSH: type_str = "semcosh"; break; - case SEMCOVE: - type_str = "semcove"; - break; case SEMCO3RD: type_str = "semco3rd"; break;