Input: gamecon - reference correct input device in NES mode

We moved input devices from 'struct gc' to individial pads (struct
gc-pad), but gc_nes_process_packet() was still trying to use old
ones and crashing.

Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

+1 -2
+1 -2
drivers/input/joystick/gamecon.c
··· 89 89 struct gc { 90 90 struct pardevice *pd; 91 91 struct gc_pad pads[GC_MAX_DEVICES]; 92 - struct input_dev *dev[GC_MAX_DEVICES]; 93 92 struct timer_list timer; 94 93 int pad_count[GC_MAX]; 95 94 int used; ··· 386 387 for (i = 0; i < GC_MAX_DEVICES; i++) { 387 388 388 389 pad = &gc->pads[i]; 389 - dev = gc->dev[i]; 390 + dev = pad->dev; 390 391 s = gc_status_bit[i]; 391 392 392 393 switch (pad->type) {