Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357761
b: refs/heads/master
c: eea553c
h: refs/heads/master
i:
  357759: 972f295
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 12, 2013
1 parent ae07734 commit 03e4a85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc1b69ed22a704fb1cc83d75b2eb46508a06c820
refs/heads/master: eea553c21fbfa486978c82525ee8256239d4f921
5 changes: 5 additions & 0 deletions trunk/net/ceph/ceph_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <linux/slab.h>
#include <linux/statfs.h>
#include <linux/string.h>
#include <linux/nsproxy.h>
#include <net/net_namespace.h>


#include <linux/ceph/ceph_features.h>
Expand Down Expand Up @@ -292,6 +294,9 @@ ceph_parse_options(char *options, const char *dev_name,
int err = -ENOMEM;
substring_t argstr[MAX_OPT_ARGS];

if (current->nsproxy->net_ns != &init_net)
return ERR_PTR(-EINVAL);

opt = kzalloc(sizeof(*opt), GFP_KERNEL);
if (!opt)
return ERR_PTR(-ENOMEM);
Expand Down

0 comments on commit 03e4a85

Please sign in to comment.