Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321608
b: refs/heads/master
c: 0274df3
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Daniel Vetter committed Jul 26, 2012
1 parent 3343c51 commit ee63365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af447bd358acd92a8e96b61a3bf7a55c61a642f4
refs/heads/master: 0274df3e43be962eee0499ee97c514fdb1c8f3ae
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/i915/intel_sdvo.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,16 @@ static bool intel_sdvo_write_cmd(struct intel_sdvo *intel_sdvo, u8 cmd,
struct i2c_msg *msgs;
int i, ret = true;

/* Would be simpler to allocate both in one go ? */
buf = (u8 *)kzalloc(args_len * 2 + 2, GFP_KERNEL);
if (!buf)
return false;

msgs = kcalloc(args_len + 3, sizeof(*msgs), GFP_KERNEL);
if (!msgs)
if (!msgs) {
kfree(buf);
return false;
}

intel_sdvo_debug_write(intel_sdvo, cmd, args, args_len);

Expand Down

0 comments on commit ee63365

Please sign in to comment.