diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 12:25:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 12:25:47 -0500 |
commit | 2bf2154c6bb5599e3ec3f73c34861a0b12aa839e (patch) | |
tree | 62691bd915e2e3c2e6648306d3fb893f7a1dc57e /drivers/usb/storage/isd200.c | |
parent | 08a4ecee986dd98e86090ff5faac4782b6765aed (diff) | |
parent | 71a8924bee63d891f6256d560e32416a458440b3 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (81 commits)
[PATCH] USB: omninet: fix up debugging comments
[PATCH] USB serial: add navman driver
[PATCH] USB: Fix irda-usb use after use
[PATCH] USB: rtl8150 small fix
[PATCH] USB: ftdi_sio: add Icom ID1 USB product and vendor ids
[PATCH] USB: cp2101: add new device IDs
[PATCH] USB: fix check_ctrlrecip to allow control transfers in state ADDRESS
[PATCH] USB: vicam.c: fix a NULL pointer dereference
[PATCH] USB: ZC0301 driver bugfix
[PATCH] USB: add support for Creativelabs Silvercrest USB keyboard
[PATCH] USB: storage: new unusual_devs.h entry: Mitsumi 7in1 Card Reader
[PATCH] USB: storage: unusual_devs.h entry 0420:0001
[PATCH] USB: storage: another unusual_devs.h entry
[PATCH] USB: storage: sandisk unusual_devices entry
[PATCH] USB: fix initdata issue in isp116x-hcd
[PATCH] USB: usbcore: usb_set_configuration oops (NULL ptr dereference)
[PATCH] USB: usbcore: Don't assume a USB configuration includes any interfaces
[PATCH] USB: ub 03 drop stall clearing
[PATCH] USB: ub 02 remove diag
[PATCH] USB: ub 01 remove first_open
...
Diffstat (limited to 'drivers/usb/storage/isd200.c')
-rw-r--r-- | drivers/usb/storage/isd200.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c index ecb328aa9ea1..6831dca93c1b 100644 --- a/drivers/usb/storage/isd200.c +++ b/drivers/usb/storage/isd200.c | |||
@@ -1361,21 +1361,19 @@ static int isd200_init_info(struct us_data *us) | |||
1361 | struct isd200_info *info; | 1361 | struct isd200_info *info; |
1362 | 1362 | ||
1363 | info = (struct isd200_info *) | 1363 | info = (struct isd200_info *) |
1364 | kmalloc(sizeof(struct isd200_info), GFP_KERNEL); | 1364 | kzalloc(sizeof(struct isd200_info), GFP_KERNEL); |
1365 | if (!info) | 1365 | if (!info) |
1366 | retStatus = ISD200_ERROR; | 1366 | retStatus = ISD200_ERROR; |
1367 | else { | 1367 | else { |
1368 | memset(info, 0, sizeof(struct isd200_info)); | ||
1369 | info->id = (struct hd_driveid *) | 1368 | info->id = (struct hd_driveid *) |
1370 | kmalloc(sizeof(struct hd_driveid), GFP_KERNEL); | 1369 | kzalloc(sizeof(struct hd_driveid), GFP_KERNEL); |
1371 | info->RegsBuf = (unsigned char *) | 1370 | info->RegsBuf = (unsigned char *) |
1372 | kmalloc(sizeof(info->ATARegs), GFP_KERNEL); | 1371 | kmalloc(sizeof(info->ATARegs), GFP_KERNEL); |
1373 | if (!info->id || !info->RegsBuf) { | 1372 | if (!info->id || !info->RegsBuf) { |
1374 | isd200_free_info_ptrs(info); | 1373 | isd200_free_info_ptrs(info); |
1375 | kfree(info); | 1374 | kfree(info); |
1376 | retStatus = ISD200_ERROR; | 1375 | retStatus = ISD200_ERROR; |
1377 | } else | 1376 | } |
1378 | memset(info->id, 0, sizeof(struct hd_driveid)); | ||
1379 | } | 1377 | } |
1380 | 1378 | ||
1381 | if (retStatus == ISD200_GOOD) { | 1379 | if (retStatus == ISD200_GOOD) { |
@@ -1384,7 +1382,7 @@ static int isd200_init_info(struct us_data *us) | |||
1384 | } else | 1382 | } else |
1385 | US_DEBUGP("ERROR - kmalloc failure\n"); | 1383 | US_DEBUGP("ERROR - kmalloc failure\n"); |
1386 | 1384 | ||
1387 | return(retStatus); | 1385 | return retStatus; |
1388 | } | 1386 | } |
1389 | 1387 | ||
1390 | /************************************************************************** | 1388 | /************************************************************************** |