diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-17 13:04:10 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-17 13:04:10 -0200 |
commit | 930cae361dc772465ff3b1c6219555be24fc91e3 (patch) | |
tree | b4f33d9efc527481317834cdbe1b604dca4b8432 /linux/drivers/media/video | |
parent | 816bb5ab39cffef3400f21bae0822296d4785a30 (diff) | |
download | mediapointer-dvb-s2-930cae361dc772465ff3b1c6219555be24fc91e3.tar.gz mediapointer-dvb-s2-930cae361dc772465ff3b1c6219555be24fc91e3.tar.bz2 |
backport commit 7eff2e7a8b65c25920207324e56611150eb1cd9a
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Original Description:
Author: Kay Sievers <kay.sievers@vrfy.org>
Date: Tue Aug 14 15:15:12 2007 +0200
Driver core: change add_uevent_var to use a struct
This changes the uevent buffer functions to use a struct instead of a
long list of parameters. It does no longer require the caller to do the
proper buffer termination and size accounting, which is currently wrong
in some places. It fixes a known bug where parts of the uevent
environment are overwritten because of wrong index calculations.
Many thanks to Mathieu Desnoyers for finding bugs and improving the
error handling.
CC: Mike Isely <isely@isely.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c index 22c9db395..8537b5b05 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c @@ -923,8 +923,8 @@ static int pvr2_sysfs_hotplug(struct class_device *cd,char **envp, return 0; } #else -static int pvr2_sysfs_hotplug(struct device *cd,char **envp, - int numenvp,char *buf,int size) +static int pvr2_sysfs_hotplug(struct device *d, + struct kobj_uevent_env *env) { /* Even though we don't do anything here, we still need this function because sysfs will still try to call it. */ |