Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190574
b: refs/heads/master
c: 8c88e50
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Dave Airlie committed Apr 28, 2010
1 parent 589eeba commit 316cb54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 404b017d00a9f472bdf725a06892d42f1cba5ed8
refs/heads/master: 8c88e50bcf7f9f7e1b4987aaac3dfacc3ac6bd24
6 changes: 4 additions & 2 deletions trunk/drivers/gpu/vga/vga_switcheroo.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,10 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf,

mutex_lock(&vgasr_mutex);

if (!vgasr_priv.active)
return -EINVAL;
if (!vgasr_priv.active) {
cnt = -EINVAL;
goto out;
}

/* pwr off the device not in use */
if (strncmp(usercmd, "OFF", 3) == 0) {
Expand Down

0 comments on commit 316cb54

Please sign in to comment.