Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89be060
)
Prevent false "leak" because of OBD memory accounting.
author
adilger
<adilger>
Mon, 16 Sep 2002 22:58:58 +0000
(22:58 +0000)
committer
adilger
<adilger>
Mon, 16 Sep 2002 22:58:58 +0000
(22:58 +0000)
lustre/osc/osc_request.c
patch
|
blob
|
history
diff --git
a/lustre/osc/osc_request.c
b/lustre/osc/osc_request.c
index
2c6945d
..
a4e1a18
100644
(file)
--- a/
lustre/osc/osc_request.c
+++ b/
lustre/osc/osc_request.c
@@
-335,7
+335,8
@@
static void brw_finish(struct ptlrpc_bulk_desc *desc, void *data)
if (cb_data->callback)
cb_data->callback(cb_data->cb_data, err, CB_PHASE_FINISH);
- OBD_FREE(cb_data->obd_data, cb_data->obd_size);
+ if (cb_data->obd_data)
+ OBD_FREE(cb_data->obd_data, cb_data->obd_size);
OBD_FREE(cb_data, sizeof(*cb_data));
/* We can't kunmap the desc from interrupt context, so we do it from