[PORT FROM R2] mid_pmu: fix klockwork issues
authorRamachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Tue, 27 Dec 2011 14:54:06 +0000 (20:24 +0530)
committerbuildbot <buildbot@intel.com>
Thu, 5 Jan 2012 11:21:52 +0000 (03:21 -0800)
commit07819ee2186388852cc24d8618bbb49d5241ae53
treee0857961b2a4c4234dcb4d72d2754760011e3967
parentcfa05f32adac4bcb0d887ab724528495f35d1f7a
[PORT FROM R2] mid_pmu: fix klockwork issues

BZ: 18375

This patch fixes following klockwork issues:

function 'strncpy' may incorrectly check buffer
boundaries and may overflow buffer 'valcp' of fixed size (5)
linux-2.6/arch/x86/platform/mfld/pmu.c:491 | set_extended_cstate_mode()

function 'strncpy' may incorrectly check buffer
boundaries and may overflow buffer 'valcp' of fixed size (4)
linux-2.6/arch/x86/platform/mfld/pmu.c:578 | set_pmu_driver_status()

Change-Id: Icead563c02b57b122a676c490e8cf134928595a3
Orig-Change-Id: I41a62d195a5155fafde5320fe014bd0bf123514c
Signed-off-by: Sudarshan Ramachandra <sudarshan.n.ramachandra@intel.com>
Reviewed-on: http://android.intel.com:8080/30277
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/platform/mfld/pmu.c