History

apparmor: put back designators in struct initialisers

Stephen Rothwell committed 9 years ago

Commit c4758fa1 parent c377a2c1 file · +2 −2Browse files

Unified · Split

security/apparmor/file.c+2−2
@@ -472,8 +472,8 @@ audit: · 471 unmodified lines
472472 int aa_path_link(struct aa_label *label, struct dentry *old_dentry,
473473 const struct path *new_dir, struct dentry *new_dentry)
474474 {
475− struct path link = { new_dir->mnt, new_dentry };
476− struct path target = { new_dir->mnt, old_dentry };
475+ struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry };
476+ struct path target = { .mnt = new_dir->mnt, .dentry = old_dentry };
477477 struct path_cond cond = {
478478 d_backing_inode(old_dentry)->i_uid,
479479 d_backing_inode(old_dentry)->i_mode