[LU-4718] NULL pointer derefences in OSP Created: 05/Mar/14 Updated: 24/Apr/14 Resolved: 24/Apr/14 |
|
| Status: | Closed |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.6.0 |
| Fix Version/s: | Lustre 2.6.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | RoDC, osp | ||
| Severity: | 3 |
| Rank (Obsolete): | 12968 |
| Description |
|
In osp_xattr_get() and osp_declare_xattr_set() there are NULL pointer deferences in the error handling cases. /root/lustre-release/lustre/osp/osp_object.c:749:9: warning: Access to field 'oxe_ready' results in a dereference of a null pointer (loaded from variable 'oxe')
oxe->oxe_ready = 0;
~~~ ^
/root/lustre-release/lustre/osp/osp_object.c:836:9: warning: Access to field 'oxe_ready' results in a dereference of a null pointer (loaded from variable 'oxe')
oxe->oxe_ready = 0;
~~~ ^
|
| Comments |
| Comment by John Hammond [ 14/Mar/14 ] |
|
Please see http://review.whamcloud.com/#/c/9672/. |
| Comment by John Hammond [ 24/Apr/14 ] |
|
Patch landed to master. |