Skip to content

Commit

Permalink
Fixes a null poniter dereference while detaching a non existent device
Browse files Browse the repository at this point in the history
Reference #61
  • Loading branch information
meyerlaurent committed Nov 25, 2014
1 parent 5153d90 commit 5951dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srb_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ int srb_device_detach(const char *devname)
SRBDEV_LOG_ERR(dev, "Cannot detach device %s", devname);
}
} else {
SRBDEV_LOG_ERR(dev, "Device %s was not found as attached", devname);
SRB_LOG_ERR(srb_log, "Device %s was not found as attached", devname);
return -EINVAL;
}

Expand Down

0 comments on commit 5951dec

Please sign in to comment.