Protect against NULL sym string.

This commit is contained in:
Jeffrey Stedfast
2011-12-20 21:52:35 -05:00
parent 7bd9a40864
commit 9eb32f4340

View File

@ -825,7 +825,7 @@ lookup_kernel_symbol (gulong address)
* Below we filter out the [irq stack]
*/
i = 0;
while (skip_kernel_symbols[i][0] != '\0')
while (sym && skip_kernel_symbols[i][0] != '\0')
{
if (strcmp (sym, skip_kernel_symbols[i]) == 0)
{