diff options
| author | Andy Shevchenko <[email protected]> | 2015-01-14 16:39:31 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2015-01-20 11:50:14 +0000 |
| commit | 1b43d7125f3b6f7d46e72da64f65f3187a83b66b (patch) | |
| tree | 3ae13345688fcbf4e6636074ab9b99f14468e67b /lib/mpi/mpi-cmp.c | |
| parent | x86/platform: Remove unused function from apb_timer.c (diff) | |
| download | kernel-1b43d7125f3b6f7d46e72da64f65f3187a83b66b.tar.gz kernel-1b43d7125f3b6f7d46e72da64f65f3187a83b66b.zip | |
x86: pmc-atom: Assign debugfs node as soon as possible
pmc_dbgfs_unregister() will be called when pmc->dbgfs_dir is unconditionally
NULL on error path in pmc_dbgfs_register(). To prevent this we move the
assignment to where is should be.
Fixes: f855911c1f48 (x86/pmc_atom: Expose PMC device state and platform sleep state)
Reported-by: Thomas Gleixner <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Cc: Aubrey Li <[email protected]>
Cc: Rafael J. Wysocki <[email protected]>
Cc: Kumar P. Mahesh <[email protected]>
Link: http://lkml.kernel.org/r/1421253575-22509-2-git-send-email-andriy.shevchenko@linux.intel.com
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
