intel_th: msu: Handle kstrndup() failure
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 4 Mar 2016 14:16:31 +0000 (16:16 +0200)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 8 Apr 2016 13:11:55 +0000 (16:11 +0300)
commit6575cbd67172bbcbfbb50ddd854d2b90c9f4e358
treeafb171b15a3e11db7aaa847384753fe0a4c22741
parent8f1127ea09a7bfe7e1b5fab5b7f52bd56f2d1bf5
intel_th: msu: Handle kstrndup() failure

Currently, the nr_pages attribute store does not check if kstrndup()
succeeded. Fix this.

Reported-by: Alan Cox <alan.cox@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Laurent Fert <laurent.fert@intel.com>
drivers/hwtracing/intel_th/msu.c
This page took 0.028386 seconds and 5 git commands to generate.