diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-04 00:29:50 +0200 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@opteron.9grid.us> | 2008-05-15 02:23:26 +0200 |
commit | d0c447180bfcb1db8d59e6ddb10f0346bd7d29e9 (patch) | |
tree | 896887bfdb1cf7bf8dbb1212bb7526f5149cdad7 /net/9p/trans_virtio.c | |
parent | 9p: Correct fidpool creation failure in p9_client_create (diff) | |
download | linux-d0c447180bfcb1db8d59e6ddb10f0346bd7d29e9.tar.xz linux-d0c447180bfcb1db8d59e6ddb10f0346bd7d29e9.zip |
9p: fix flags length in net
Some files in the net/9p directory uses "int" for flags. This can
cause hard to find bugs on some architectures. This patch converts the
flags to use "long" instead.
This bug was discovered by doing an allyesconfig make on the -rt kernel
where checks are done to ensure all flags are of size sizeof(long).
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Acked-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/trans_virtio.c')
-rw-r--r-- | net/9p/trans_virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index d23ed60483c3..42adc052b149 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -201,7 +201,7 @@ static void p9_virtio_close(struct p9_trans *trans) { struct virtio_chan *chan = trans->priv; int count; - unsigned int flags; + unsigned long flags; spin_lock_irqsave(&chan->lock, flags); p9_idpool_destroy(chan->tagpool); |