Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360218
b: refs/heads/master
c: 6d1f662
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and James Bottomley committed Feb 22, 2013
1 parent 57f6ce5 commit cf2ee90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50e9291578886099888b8169459c6f97626ccbfc
refs/heads/master: 6d1f6621fa12800fc84f62db9e0b7a6b623eb439
4 changes: 4 additions & 0 deletions trunk/drivers/scsi/osd/osd_initiator.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ static int _osd_get_print_system_info(struct osd_dev *od,
odi->osdname_len = get_attrs[a].len;
/* Avoid NULL for memcmp optimization 0-length is good enough */
odi->osdname = kzalloc(odi->osdname_len + 1, GFP_KERNEL);
if (!odi->osdname) {
ret = -ENOMEM;
goto out;
}
if (odi->osdname_len)
memcpy(odi->osdname, get_attrs[a].val_ptr, odi->osdname_len);
OSD_INFO("OSD_NAME [%s]\n", odi->osdname);
Expand Down

0 comments on commit cf2ee90

Please sign in to comment.