]> err.no Git - linux-2.6/commit
ide: ide-cd_ioctl.c fix sparse integer as NULL pointer warnings
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 23 Jul 2008 17:56:02 +0000 (19:56 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:56:02 +0000 (19:56 +0200)
commit1a677aba5e0e45cc5b2a04c059edfcf06c1ea9bb
treee2f857f28602bbb1f81850946a2aca06fd84a226
parent141d3b27fc4b4f97ca6d9b5c1cc8aeeab967dcfc
ide: ide-cd_ioctl.c fix sparse integer as NULL pointer warnings

The function ide_cd_queue_pc should be checked as the bufflen arg is
dereferenced and lots of callers are passing in NULL.

drivers/ide/ide-cd_ioctl.c:124:46: warning: Using plain integer as NULL pointer
drivers/ide/ide-cd_ioctl.c:149:47: warning: Using plain integer as NULL pointer
drivers/ide/ide-cd_ioctl.c:231:46: warning: Using plain integer as NULL pointer
drivers/ide/ide-cd_ioctl.c:374:46: warning: Using plain integer as NULL pointer

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-cd_ioctl.c