| commit | eb7a07e8d6580ea498cac53acafe42c080af4d06 | [log] [tgz] |
|---|---|---|
| author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | Sat Apr 26 17:36:42 2008 +0200 |
| committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | Sat Apr 26 17:36:42 2008 +0200 |
| tree | 0fb5175c41825786f774247d1c759e7fb1c4ea3a | |
| parent | 79472b6ea9e74ee4400ba57ba84cad86426e2d6d [diff] |
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>