* more /proc/ppc_htab
@ 1999-07-15 10:21 Adrian Cox
0 siblings, 0 replies; only message in thread
From: Adrian Cox @ 1999-07-15 10:21 UTC (permalink / raw)
To: LinuxPPC-Dev
In the 2.2.10 kernel (with a Debian userspace), cat /proc/ppc_htab
works, and more /proc/ppc_htab produces a segfault. This fixes it.
- Adrian Cox, AG Electronics
--- linuxppc-2.2.10/arch/ppc/kernel/ppc_htab.c Thu Dec 10 00:24:23 1998
+++ linux/arch/ppc/kernel/ppc_htab.c Thu Jul 15 11:17:40 1999
@@ -253,6 +253,8 @@
return 0;
if (n > strlen(buffer) - *ppos)
n = strlen(buffer) - *ppos;
+ if (n > count)
+ n = count;
copy_to_user(buf, buffer + *ppos, n);
*ppos += n;
return n;
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-07-15 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-15 10:21 more /proc/ppc_htab Adrian Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).