Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223761
b: refs/heads/master
c: 9f260e0
h: refs/heads/master
i:
  223759: 6a6b251
v: v3
  • Loading branch information
Dan Rosenberg authored and David S. Miller committed Dec 31, 2010
1 parent 84df47c commit 65ef169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a5fc4e179d79c79ad87bfc12a2d7e9b2371e40c
refs/heads/master: 9f260e0efa4766e56d0ac14f1aeea6ee5eb8fe83
4 changes: 2 additions & 2 deletions trunk/net/can/bcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct bcm_sock {
struct list_head tx_ops;
unsigned long dropped_usr_msgs;
struct proc_dir_entry *bcm_proc_read;
char procname [20]; /* pointer printed in ASCII with \0 */
char procname [32]; /* inode number in decimal with \0 */
};

static inline struct bcm_sock *bcm_sk(const struct sock *sk)
Expand Down Expand Up @@ -1521,7 +1521,7 @@ static int bcm_connect(struct socket *sock, struct sockaddr *uaddr, int len,

if (proc_dir) {
/* unique socket address as filename */
sprintf(bo->procname, "%p", sock);
sprintf(bo->procname, "%lu", sock_i_ino(sk));
bo->bcm_proc_read = proc_create_data(bo->procname, 0644,
proc_dir,
&bcm_proc_fops, sk);
Expand Down

0 comments on commit 65ef169

Please sign in to comment.