git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: serial: visor: fix crash on detecting device without write_urbs
[pandora-kernel.git]
/
drivers
/
usb
/
storage
/
ene_ub6250.c
diff --git
a/drivers/usb/storage/ene_ub6250.c
b/drivers/usb/storage/ene_ub6250.c
index
4dca3ef
..
9fbe742
100644
(file)
--- a/
drivers/usb/storage/ene_ub6250.c
+++ b/
drivers/usb/storage/ene_ub6250.c
@@
-1762,10
+1762,9
@@
static int ms_scsi_write(struct us_data *us, struct scsi_cmnd *srb)
result = ene_send_scsi_cmd(us, FDIR_WRITE, scsi_sglist(srb), 1);
} else {
void *buf;
- int offset;
+ int offset
= 0
;
u16 PhyBlockAddr;
u8 PageNum;
- u32 result;
u16 len, oldphy, newphy;
buf = kmalloc(blenByte, GFP_KERNEL);