I just ran the static analyser cppcheck over the source code of the linux kernel version 3.6-rc4. It said [linux-3.6-rc4/drivers/staging/gdm72xx/gdm_sdio.c:683]: (style) A pointer can not be negative so it is either pointless or an error to check if it is. The source code is ret = init_sdio(sdev); if (sdev < 0) goto out; Suggest new code ret = init_sdio(sdev); if (ret < 0) goto out;
On Sun, Sep 02, 2012 at 04:47:14PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=46921 > > Summary: gdm72xx/gdm_sdio.c:683: bad pointer test Please post patches or this info to the mailing list. greg k-h
Patch queued
A patch referencing this bug report has been merged in Linux v3.7-rc1: commit f1efd9fe08a9ada843cd99f949a130555df045bd Author: Alan Cox <alan@linux.intel.com> Date: Tue Sep 4 16:04:36 2012 +0100 staging: gdm72xx: Fix bogus test