]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: core: increase stack size of config ROM reader
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 18 Feb 2010 00:54:00 +0000 (01:54 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 24 Feb 2010 19:36:54 +0000 (20:36 +0100)
commit1c1665c3c50d5f3584130f1f5af9482f9d76e755
treed084f4cb49842cefe5e9753cf3050c1171fd4560
parentc64539a8b79314f6dccc6a68251fca19f1e18705
firewire: core: increase stack size of config ROM reader

The stack size of 16 was artificially chosen and may be too small in
extreme cases.  A device won't be accessible then.

Since it doesn't really matter to the slab allocator whether we ask for
1088 bytes or 2048 bytes of scratch memory, just allocate 2048 bytes for
the sum of temporary config ROM image and stack, and we will never ever
overflow the stack (because there simply can't be more stack items than
ROM entries).

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-device.c