From: Axel Lin Date: Sun, 23 Jun 2013 07:50:07 +0000 (+0800) Subject: of/irq: Avoid calling list_first_entry() for empty list X-Git-Tag: v3.11-rc3~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0cdfaa0a5e7a346ac2f661f63f543cdc5f7cbbe;p=pandora-kernel.git of/irq: Avoid calling list_first_entry() for empty list list_first_entry() expects the list is not empty, we need to check if list is empty before calling list_first_entry(). Thus use list_first_entry_or_null() instead of list_first_entry(). Signed-off-by: Axel Lin Signed-off-by: Grant Likely --- Reading git-diff-tree failed