diff options
Diffstat (limited to 'drivers/block/paride/pg.c')
-rw-r--r-- | drivers/block/paride/pg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c index 6b9a2000d56a..4a27b1de5fcb 100644 --- a/drivers/block/paride/pg.c +++ b/drivers/block/paride/pg.c | |||
@@ -130,13 +130,14 @@ | |||
130 | #define PI_PG 4 | 130 | #define PI_PG 4 |
131 | #endif | 131 | #endif |
132 | 132 | ||
133 | #include <linux/types.h> | ||
133 | /* Here are things one can override from the insmod command. | 134 | /* Here are things one can override from the insmod command. |
134 | Most are autoprobed by paride unless set here. Verbose is 0 | 135 | Most are autoprobed by paride unless set here. Verbose is 0 |
135 | by default. | 136 | by default. |
136 | 137 | ||
137 | */ | 138 | */ |
138 | 139 | ||
139 | static int verbose = 0; | 140 | static bool verbose = 0; |
140 | static int major = PG_MAJOR; | 141 | static int major = PG_MAJOR; |
141 | static char *name = PG_NAME; | 142 | static char *name = PG_NAME; |
142 | static int disable = 0; | 143 | static int disable = 0; |
@@ -630,6 +631,7 @@ static ssize_t pg_read(struct file *filp, char __user *buf, size_t count, loff_t | |||
630 | if (dev->status & 0x10) | 631 | if (dev->status & 0x10) |
631 | return -ETIME; | 632 | return -ETIME; |
632 | 633 | ||
634 | memset(&hdr, 0, sizeof(hdr)); | ||
633 | hdr.magic = PG_MAGIC; | 635 | hdr.magic = PG_MAGIC; |
634 | hdr.dlen = dev->dlen; | 636 | hdr.dlen = dev->dlen; |
635 | copy = 0; | 637 | copy = 0; |