[lkml]   [2009]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 9/10] drivers/mmc: Move a dereference below a NULL test
> It is not a "NULL check" it is an assertion, which can be compiled out.
> On some platforms BUG is implemented as a null dereference anyway
> e.g. on ARM it is *(int *)0 = 0;

It's a bogus check because the

struct mmc_omap_host *host = slot->host;

has already been executed before you check for slot == NULL

 \ /
  Last update: 2009-07-20 14:49    [W:0.039 / U:1.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site