lkml.org 
[lkml]   [2000]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 2.3.39pre2: loop block device uninitialised var
lo_release never returns an error, but err is never actually initialised
to zero. Here's a tiny patch to get rid of err altogether.

Tim.
*/

--- linux-2.3.39pre2/drivers/block/loop.c~ Sun Jan 9 17:28:21 2000
+++ linux-2.3.39pre2/drivers/block/loop.c Sun Jan 9 17:28:44 2000
@@ -643,7 +643,7 @@
static int lo_release(struct inode *inode, struct file *file)
{
struct loop_device *lo;
- int dev, err;
+ int dev;

if (!inode)
return 0;
@@ -664,7 +664,7 @@
xfer_funcs[type]->unlock(lo);
MOD_DEC_USE_COUNT;
}
- return err;
+ return 0;
}

static struct block_device_operations lo_fops = {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.078 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site