[LU-7949] Suspicious dereference of pointer before NULL check in osd_declare_qid() Created: 29/Mar/16 Updated: 21/Sep/16 Resolved: 21/Sep/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.9.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Dmitry Eremin (Inactive) | Assignee: | WC Triage |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | kw | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
Suspicious dereference of pointer 'oh' before NULL check at line 515
504 int osd_declare_qid(const struct lu_env *env, struct osd_thandle *oh, 505 struct lquota_id_info *qi, struct osd_object *obj, 506 bool enforce, int *flags) 507 { 508 struct osd_device *dev = osd_dt_dev(oh->ot_super.th_dev); 509 struct qsd_instance *qsd = dev->od_quota_slave; 510 struct inode *inode = NULL; 511 int i, rc = 0, crd; 512 bool found = false; 513 ENTRY; 514 515 LASSERT(oh != NULL); |
| Comments |
| Comment by Gerrit Updater [ 10/Sep/16 ] |
|
Arshad Hussain (arshad.hussain@seagate.com) uploaded a new patch: http://review.whamcloud.com/22428 |
| Comment by Gerrit Updater [ 21/Sep/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/22428/ |
| Comment by Peter Jones [ 21/Sep/16 ] |
|
Landed for 2.9 |