patch-2.4.0-test10-irda22 (was: Re: The IrDA patches)
PATCH 1/1 patch-2.4.0-test10-irda22 (was: Re: The IrDA patches)
Linus,
Here are the new IrDA patches for Linux-2.4.0-test10. Please apply them to your latest 2.4 code. If you decide to apply them, then I suggest you start with the first one (irda1.diff) and work your way to the last one (irda24.diff) since most of them are not commutative.
The name of this patch is irda22.diff.
(Many thanks to Jean Tourrilhes for splitting up the big patch)
[FEATURE] : Add a new feature to the IrDA stack [CORRECT] : Fix to have the correct/expected behaviour [CRITICA] : Fix potential kernel crash
[OUPS ] : Error that will be fixed in a later patch
irda22.diff :
-----------------
o [FEATURE] Cleaner module init
o [FEATURE] Remove dependancy on irmanager
o [FEATURE] Move remaining irmod.c content to irsyms.c
o [FEATURE] Cleaner use of MOD_INC_USE_COUNT
net/irda/Makefile +1 -1
@@ -17,7 +17,7 @@ O_OBJS := iriap.o iriap_event.o irlmp.o irlap.o irlap_event.o irlap_frame.o timer.o qos.o irqueue.o \ irttp.o irda_device.o irias_object.o crc.o wrapper.o af_irda.o \ discovery.o parameters.o -OX_OBJS := irmod.o +OX_OBJS := irsyms.o ifeq ($(CONFIG_IRDA),m) M_OBJS := $(O_TARGET)
net/irda/af_irda.c +53 -21
132 lines not on this page · raw message
net/irda/irlmp.c +4 -9
@@ -74,6 +74,7 @@ int irlmp_proc_read(char *buf, char **st*/ int __init irlmp_init (void ) { +IRDA_DEBUG (0 , __FUNCTION__"()\n" );/* Initialize the irlmp structure. */ irlmp =kmalloc (sizeof (struct irlmp_cb ),GFP_KERNEL );if (irlmp ==NULL )
@@ -787,7 +788,6 @@ struct irda_device_info *irlmp_get_discovoid irlmp_check_services (discovery_t *discovery) {struct irlmp_client *client; -struct irmanager_event event;__u8 *service_log;__u8 service;int i =0 ;
@@ -815,14 +815,7 @@ void irlmp_check_services(discovery_t *dcontinue ;/* * Found no clients for dealing with this service, -* so ask the user space irmanager to try to load -* the right module for us */ - event.event =EVENT_DEVICE_DISCOVERED ; - event.service = service; - event.daddr = discovery->daddr; -sprintf (event.info,"%s" , discovery->info); -irmanager_notify (&event); } }kfree (service_log);
@@ -1357,6 +1350,9 @@ __u32 irlmp_register_client(__u16 hint_mirlmp_client_t *client;__u32 handle; +IRDA_DEBUG (0 , __FUNCTION__"()\n" ); + ASSERT(irlmp != NULL, return 0;); +/* Get a unique handle for this client */ get_random_bytes (&handle,sizeof (handle));while (hashbin_find (irlmp->clients, handle,NULL ) || !handle)
@@ -1366,7 +1362,6 @@ __u32 irlmp_register_client(__u16 hint_m client =kmalloc (sizeof (irlmp_client_t),GFP_ATOMIC );if (!client) {IRDA_DEBUG (1 , __FUNCTION__"(), Unable to kmalloc!\n" ); -return 0 ; }
net/irda/irmod.c +0 -557
557 lines not on this page · raw message
net/irda/irsyms.c +275 -0
275 lines not on this page · raw message
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/