From: Denys Vlasenko Date: Mon, 28 Sep 2015 12:34:04 +0000 (+0200) Subject: net: sctp: Don't use 64 kilobyte lookup table for four elements X-Git-Tag: omap-for-v4.3/fixes-rc5~57^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2103d6b818fcdae15ffa04cf385f770e6c3892c3;p=pandora-kernel.git net: sctp: Don't use 64 kilobyte lookup table for four elements Seemingly innocuous sctp_trans_state_to_prio_map[] array is way bigger than it looks, since "[SCTP_UNKNOWN] = 2" expands into "[0xffff] = 2" ! This patch replaces it with switch() statement. Signed-off-by: Denys Vlasenko CC: Vlad Yasevich CC: Neil Horman CC: Marcelo Ricardo Leitner CC: linux-sctp@vger.kernel.org CC: netdev@vger.kernel.org CC: linux-kernel@vger.kernel.org Acked-by: Marcelo Ricardo Leitner Acked-by: Neil Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed