From: Quentin Casasnovas Date: Thu, 16 Apr 2015 03:33:32 +0000 (+0930) Subject: modpost: fix inverted logic in is_extable_fault_address(). X-Git-Tag: omap-for-v4.1/fixes-rc1~54^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3df4de7eb095cc4334759a5e65bf3bfb4be04f1;p=pandora-kernel.git modpost: fix inverted logic in is_extable_fault_address(). As Guenter pointed out, we want to assert that extable_entry_size has been discovered and not the other way around. Moreover, this sanity check is only valid when we're not dealing with the first relocation in __ex_table, since we have not discovered the extable entry size at that point. This was leading to a divide-by-zero on some architectures and make the build fail. Signed-off-by: Quentin Casasnovas Reported-by: Guenter Roeck CC: Rusty Russell Signed-off-by: Rusty Russell --- Reading git-diff-tree failed