]> err.no Git - linux-2.6/commit
ide: Fix a theoretical Ooops case
authorAlan Cox <alan@redhat.com>
Tue, 3 Jul 2007 20:28:35 +0000 (22:28 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 3 Jul 2007 20:28:35 +0000 (22:28 +0200)
commit785955752fde4c555a1d9f74ddfe1f7aca3e0c7f
tree0019a73818f02602467ba3e87d30109128a57f78
parentb42fa133110fa952299fa76cbe91226c14838261
ide: Fix a theoretical Ooops case

Found by a static analyser. It is in theory possible we dereference
dev->id when it has become invalid. Re-order to avoid this.

Not needed for new-ide as we no longer support the crazy exabyte nest stuff

Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-probe.c