aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEmoly Liu <[email protected]>2016-08-16 16:19:13 -0400
committerGreg Kroah-Hartman <[email protected]>2016-08-21 15:57:38 +0200
commit099d5adf1ebb1d9d60097ece334930d9dab1bbc9 (patch)
tree7807242582ea65f95c8960faddfbc7318c85a8e4 /tools/perf/scripts/python
parentaa08b0e3c7ae977ed9384f63ded2743e0aee1c7e (diff)
staging: lustre: ldlm: improve ldlm_lock_create() return value
ldlm_lock_create() and ldlm_resource_get() always return NULL as error reporting and "NULL" is interpretted as ENOMEM incorrectly sometimes. This patch fixes this problem by using ERR_PTR() rather than NULL. Signed-off-by: Emoly Liu <[email protected]> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4524 Reviewed-on: http://review.whamcloud.com/9004 Reviewed-by: Bobi Jam <[email protected]> Reviewed-by: Andreas Dilger <[email protected]> Reviewed-by: John L. Hammond <[email protected]> Signed-off-by: James Simmons <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions