]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
power: Fix coverity error
authorSai Gurrappadi <sgurrappadi@nvidia.com>
Tue, 14 Jan 2014 18:26:22 +0000 (10:26 -0800)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Tue, 14 Jan 2014 23:21:50 +0000 (15:21 -0800)
commiteff22ca7c982a2e0d5591f0b442842e784efeb9c
treebc8c0fa73f701fa6ec8b99921da340d1e26dc865
parentec109abaddec39c69f846962e2f57c932a2a0475
power: Fix coverity error

Properly null-terminate userspace input string. Otherwise, the subsequent
strsep() could continue off into arbitrary chunks of kmalloc() space
that aren't part of the original string buffer.

Change-Id: I3868dbcdd9df7e7172c001eb6bc41c605d48604b
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/355578
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
kernel/power/qos.c