diff options
| author | Emoly Liu <[email protected]> | 2016-08-16 16:19:13 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-08-21 15:57:38 +0200 |
| commit | 099d5adf1ebb1d9d60097ece334930d9dab1bbc9 (patch) | |
| tree | 7807242582ea65f95c8960faddfbc7318c85a8e4 /tools/perf/scripts/python/bin | |
| parent | aa08b0e3c7ae977ed9384f63ded2743e0aee1c7e (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/bin')
0 files changed, 0 insertions, 0 deletions