[SSI-devel] Re: SSI-1.9 Assertion failed! hash > 0 && hash < 256, unixnm_put
Brought to you by:
brucewalker,
rogertsang
From: Brian J. W. <Bri...@hp...> - 2006-05-09 20:12:11
|
Hi Roger, I think you're right. I've checked in your suggested fix. Sorry about that, Brian Roger Tsang wrote: > Hi Brian, > > I noticed some SSI asserts. Shouldn't the assert be (hash >= 0 && > hash < UNIX_HASH_SIZE)? > > May 5 02:05:42 node1 kernel: Assertion failed! hash > 0 && hash < 256, > cluster/ > ssi/ipc/unixnm.c, unixnm_put, line=880 > May 6 08:31:17 node1 kernel: Assertion failed! hash > 0 && hash < 256, > cluster/ > ssi/ipc/unixnm.c, unixnm_put, line=880 > > void > unixnm_put(struct socket *sock) > { > struct inode *inode = SOCK_INODE(sock); > unsigned long sockino = inode->i_ino; > struct unix_sock *options = unix_sk(sock->sk); > int hash; > > struct unixnm_cache_entry *entry = NULL; > struct list_head *cur; > int error, ret; > > hash = options->dentry ? > unixnmsvr_hashino(options->dentry->d_inode->i_ino) : > options->addr->hash; > SSI_ASSERT(hash > 0 && hash < UNIX_HASH_SIZE); > > > Roger > > |