Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155409
b: refs/heads/master
c: 08f4287
h: refs/heads/master
i:
  155407: f2dc9f5
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Jul 12, 2009
1 parent d21ffa9 commit 9f761bc
Show file tree
Hide file tree
Showing 2 changed files with 7 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: f8c73c790c588fd70fda1632c8927a87b3d31dcd
refs/heads/master: 08f42877aff6b966a386c47e0aeb98e7645db2a9
7 changes: 6 additions & 1 deletion trunk/arch/sparc/kernel/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,12 @@ static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp,
if (!strcmp(type, "domain-services-port"))
bus_id_name = "ds";

if (strlen(bus_id_name) >= BUS_ID_SIZE - 4) {
/*
* 20 char is the old driver-core name size limit, which is no more.
* This check can probably be removed after review and possible
* adaption of the vio users name length handling.
*/
if (strlen(bus_id_name) >= 20 - 4) {
printk(KERN_ERR "VIO: bus_id_name [%s] is too long.\n",
bus_id_name);
return NULL;
Expand Down

0 comments on commit 9f761bc

Please sign in to comment.