[2.4.0test10-pre3]drm_proc_init incorrect when multiple device are registering

From: FORT David (epopo@onetelnet.fr)
Date: Sun Oct 15 2000 - 18:43:13 EST


Hi,
I've just got a look at file drivers/char/drm/proc.c, correct me if i'm
wrong but
when registering using "drm_proc_init" each device supporting drm
duplicates the dri dir entry, as "create_proc_entry " blindly create a
new dri entry even if one already exists.

IIRC a few month ago the same kind of error was occuring in /proc/irq,
perhaps we should check in
create_proc_entry that an entry exists before creating it, this could
prevent each driver from doing this
job.

--
%--IRIN->-Institut-de-Recherche-en-Informatique-de-Nantes-----------------%
% FORT David,                                                             %
% 7 avenue de la morvandière                                   0240726275 %
% 44470 Thouare, France                                epopo@onetelnet.fr %
% ICU:78064991   AIM: enlighted popo             fort@irin.univ-nantes.fr %
%--LINUX-HTTPD-PIOGENE----------------------------------------------------%
%  -datamining <-/                        |   .~.                         %
%  -networking/flashed PHP3 coming soon   |   /V\        L  I  N  U  X    %
%  -opensource                            |  // \\     >Fear the Penguin< %
%  -GNOME/enlightenment/GIMP              | /(   )\                       %
%           feel enlighted....            |  ^^-^^                        %
%                           http://ibonneace.dnsalias.org/ when connected %
%-------------------------------------------------------------------------%

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:29 EST