]> git.baikalelectronics.ru Git - kernel.git/commit
i7300_edac: pre-allocate a buffer used to prepare err messages
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 27 Aug 2010 14:36:23 +0000 (11:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Aug 2010 17:56:59 +0000 (14:56 -0300)
commit655da4c380cb10de1c9fdf7180fbc45bc24173a4
tree47bda43b1f4c3f60afa17114df8f4f8081e2f2a2
parentcde60b9e47940f8e76104319ca5f4f6dff16e817
i7300_edac: pre-allocate a buffer used to prepare err messages

Instead of dynamically allocating a buffer for it where needed,
just allocate it once. As we'll use the same buffer also during
fatal and non-fatal errors, is is very risky to dynamically allocate
it during an error.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7300_edac.c