]> git.baikalelectronics.ru Git - kernel.git/commit
it821x: fix kzalloc() failure handling
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 15:36:42 +0000 (17:36 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 15:36:42 +0000 (17:36 +0200)
commit89cf7a3b40e51644e1e44d303248e891667ce79b
tree0fb5175c41825786f774247d1c759e7fb1c4ea3a
parentb2f4949f1036ad23dcb05e315fb7e5e921eb46ab
it821x: fix kzalloc() failure handling

Allocate 'struct it821x_dev' objects for both ports in it821x_init_one().

Fixes potential OOPS in it821x_quirkproc() (uses 'itdev' unconditionally)
and other problems ('itdev' is needed for correct operation of the driver).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/it821x.c