Commit 75552d68 authored by Rusty Russell's avatar Rusty Russell Committed by David S. Miller

[IPSEC]: Avoid using SET_MODULE_OWNER.

parent 7201d1b2
......@@ -321,6 +321,7 @@ static void ah_destroy(struct xfrm_state *x)
static struct xfrm_type ah_type =
{
.description = "AH4",
.owner = THIS_MODULE,
.proto = IPPROTO_AH,
.init_state = ah_init_state,
.destructor = ah_destroy,
......@@ -336,7 +337,6 @@ static struct inet_protocol ah4_protocol = {
static int __init ah4_init(void)
{
SET_MODULE_OWNER(&ah_type);
if (xfrm_register_type(&ah_type, AF_INET) < 0) {
printk(KERN_INFO "ip ah init: can't add xfrm type\n");
return -EAGAIN;
......
......@@ -553,6 +553,7 @@ int esp_init_state(struct xfrm_state *x, void *args)
static struct xfrm_type esp_type =
{
.description = "ESP4",
.owner = THIS_MODULE,
.proto = IPPROTO_ESP,
.init_state = esp_init_state,
.destructor = esp_destroy,
......
......@@ -319,6 +319,7 @@ static void ah6_destroy(struct xfrm_state *x)
static struct xfrm_type ah6_type =
{
.description = "AH6",
.owner = THIS_MODULE,
.proto = IPPROTO_AH,
.init_state = ah6_init_state,
.destructor = ah6_destroy,
......@@ -334,8 +335,6 @@ static struct inet6_protocol ah6_protocol = {
int __init ah6_init(void)
{
SET_MODULE_OWNER(&ah6_type);
if (xfrm_register_type(&ah6_type, AF_INET6) < 0) {
printk(KERN_INFO "ipv6 ah init: can't add xfrm type\n");
return -EAGAIN;
......
......@@ -489,6 +489,7 @@ int esp6_init_state(struct xfrm_state *x, void *args)
static struct xfrm_type esp6_type =
{
.description = "ESP6",
.owner = THIS_MODULE,
.proto = IPPROTO_ESP,
.init_state = esp6_init_state,
.destructor = esp6_destroy,
......@@ -505,7 +506,6 @@ static struct inet6_protocol esp6_protocol = {
int __init esp6_init(void)
{
SET_MODULE_OWNER(&esp6_type);
if (xfrm_register_type(&esp6_type, AF_INET6) < 0) {
printk(KERN_INFO "ipv6 esp init: can't add xfrm type\n");
return -EAGAIN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment