Przeglądaj źródła

Input: ps2mult - fix wrong kfree in ps2mult_connect error path

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Axel Lin 14 lat temu
rodzic
commit
0e86eb29de
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/input/serio/ps2mult.c

+ 1 - 1
drivers/input/serio/ps2mult.c

@@ -207,7 +207,7 @@ static int ps2mult_connect(struct serio *serio, struct serio_driver *drv)
 err_out:
 	while (--i >= 0)
 		kfree(psm->ports[i].serio);
-	kfree(serio);
+	kfree(psm);
 	return error;
 }