commit | 50fabb02c7c08dace3562c05797a3c92591a9803 | [log] [tgz] |
---|---|---|
author | Pan Xinhui <xinhuix.pan@intel.com> | Tue Aug 04 16:53:04 2015 -0700 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Tue Aug 04 17:03:53 2015 -0700 |
tree | bcda5afbd6d3414c2e01e5be0788813e3763ae60 | |
parent | 146c6a662f6b16536581afc8ed4c11460301a82d [diff] |
Input: atmel_mxt_ts - suspend/resume causes panic if input_dev fails to init input_dev may be NULL if mxt_initialize_input_device fails. But pm ops is still available and suspend/resume assume input_dev is not NULL. To fix this issue, we add a check if (!input_dev). Signed-off-by: Pan Xinhui <xinhuix.pan@intel.com> Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>