diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-25 17:23:19 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-03 09:57:11 -0700 |
commit | 271002ca7956e5ef140c02af1bd8e93063924ec6 (patch) | |
tree | 23672b4bdbdcb3d651f6a7ec9e0c652287fc6d09 /include | |
parent | 131c713fd96e251fcb18f4d2d05f263aa41bb11f (diff) |
Input: xilinx_ps2 - allocate serio port separately
'struct serio' is a refcounted data structure with lifetime rules different
from 'struct xps2data'. It is quite likely that serio_unregister_port() will
try to free memory allocated by the port and that is why it should be
allocated separately.
Also switch to using platform_get/set_drvdata instead of dev_get/set_drvdata
because we are dealing with platform device.
Reported-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions