diff options
Diffstat (limited to 'net/rose/af_rose.c')
| -rw-r--r-- | net/rose/af_rose.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index 0c1cc7612800..01392649b462 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
| @@ -690,7 +690,7 @@ static int rose_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) | |||
| 690 | 690 | ||
| 691 | source = &addr->srose_call; | 691 | source = &addr->srose_call; |
| 692 | 692 | ||
| 693 | user = ax25_findbyuid(current->euid); | 693 | user = ax25_findbyuid(current_euid()); |
| 694 | if (user) { | 694 | if (user) { |
| 695 | rose->source_call = user->call; | 695 | rose->source_call = user->call; |
| 696 | ax25_uid_put(user); | 696 | ax25_uid_put(user); |
| @@ -791,7 +791,7 @@ static int rose_connect(struct socket *sock, struct sockaddr *uaddr, int addr_le | |||
| 791 | goto out_release; | 791 | goto out_release; |
| 792 | } | 792 | } |
| 793 | 793 | ||
| 794 | user = ax25_findbyuid(current->euid); | 794 | user = ax25_findbyuid(current_euid()); |
| 795 | if (!user) { | 795 | if (!user) { |
| 796 | err = -EINVAL; | 796 | err = -EINVAL; |
| 797 | goto out_release; | 797 | goto out_release; |
